Part Number Hot Search : 
9S12G Z18BG EVAL2 BRS340 LBS70A03 21002 2SK2684 GLZJ18
Product Description
Full Text Search
 

To Download ML7074-003 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  fedl7074-003-01 issue date: mar. 2, 2003 ML7074-003 voip codec 1/93 general description the ML7074-003 is a speech codec for voip. this lsi allows selection of g.729.a, g.726, or g.711 standard as a speech codec. the lsi is optimum for adding voip functions to tas, routers, etc., since it has the functions of an echo canceller for 32 msec delay, dtmf detection, tone detection, tone generation, etc. features ? single 3.3 v power supply operation (dv dd 0, 1, 2, av dd : 3.0 to 3.6 v) ? speech codec: selectable among g.729.a (8 kbps), g726 (32 kbps), g.711 (64 kbps) ? -law, and a-law mutual conversion function between g.729.a (8 kbps) and g.726 (32 kbps). ? echo canceller for 32 ms delay ? dtmf detect function ? tone detect function: 2 systems (1650 hz, 2100 hz: detect frequency can be changed.) ? tone generate function ? fsk generate function ? dial pulse detect function ? dial pulse transmit function ? internal 1-channel 16-bit timer ? built-in fifo buffers (640 bytes) for transferring transmit and receive data frame/dma (slave) interface selectable. ? master clock frequency: 4.096 mhz (crystal oscillation or external input) ? hardware or software power down operation possible. ? analog input/output type: two built-in input amplifiers, 10 m ? driving two built-in output amplifiers, 10 k ? driving ? package: 64-pin plastic qfp (qfp64-p-1414-0.80-bk) ? ordering part number: ML7074-003ga
fedl7074-003-01 ML7074-003 2/93 block diagram echo canceller dtmf_rec + - aff d/a lpf g.729.a g.726 tone_gen (tonea/b) tx buffer0 rx buffer0 frame/dma controller intb a0-a7 control register 8b d0-d15 16b vref csb rdb wrb fr0b fr1b ack0b ack1b ain1n gsx1 vfro0 avref osc power pll speech codec 10k ? 10k ? dvdd2 dgnd2 avdd agnd pdnb tst1 xi xo g.711 txgain rxgain dvdd1 dgnd1 dvdd0 dgnd0 tst2 tst3 ckgn mck sync(8khz) lpad gpad atts attr bus control unit center clip encoder g.729.a g.726 g.711 decoder dtmf_det int dtmf_det tx buffer1 rx buffer1 ain0n gsx0 10k ? ain0p linear pcm codec vfro1 10k ? stgain sync bclk pcmi pcmo tone_det1 tone1_det s/p p/s serial i/f tone0_det tone1_det gpi0 gpi1 gpo0 gpo1 tone_det0 tone0_det fsk_gen tst0 clksel amp0 amp1 amp2 amp3 sin rout sout rin a/d bpf g.729.a g.729.a g.711 g.711 g.726 g.726 codec encode r decoder dpgen dpdet cr16-b0(gpi0) cr17-b0(gpo0) dp_det dp_det timer dtmf_code[3:0] dtmf_code[3:0]
fedl7074-003-01 ML7074-003 3/93 pin assignment (top view) ML7074-003 49 avref vfro0 vfro1 avdd 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 dgnd0 dgnd1 tst3 tst2 tst1 tst0 pcmo pcmi bclk sync dvdd1 rdb wrb csb fr0b fr1b dvdd0 a0 a1 a2 a3 a4 a5 a6 a7 dgnd2 xi xo dvdd2 gpi0 gpi1 gpo0 gpo1 pdnb intb ack0b ack1b clksel ain1n gsx1 ain0p ain0n gsx0 agnd 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 64-pin plastic qfp
fedl7074-003-01 ML7074-003 4/93 pin descriptions pin no. symbol i/o pdnb = ?0? description 1 tst1 i ?0? test control input 1: normally input ?0?. 2 tst0 i ?0? test control input 0: normally input ?0?. 3 pcmo o ?hi-z? pcm data output 4 pcmi i i pcm data input i clksel = ?0? pcm shift clock input 5 bclk i/o ?l? clksel = ?1? pcm shift clock output i clksel = ?0? pcm sync signal 8 khz input 6 sync i/o ?l? clksel = ?1? pcm sync signal 8 khz output 7 dv dd 0 ? ? digital power supply 8 ack0b i i transmit buffer dma access acknowledge signal input 9 ack1b i i receive buffer dma access acknowledge signal input 10 fr0b (dmarq0b) o?h? fr0b: (cr11-b7 = ?0?) transmit buffer frame signal output dmarq0b: (cr11-b7 = ?1?) transmit buffer dma access request signal output 11 fr1b (dmarq1b) o?h? fr1b: (cr11-b7 = ?0?) receive buffer frame signal output dmarq1b: (cr11-b7 = ?1?) receive buffer dma access request signal output 12 intb o ?h? interrupt request output ?l? level is output for about 1.0 ? sec when an interrupt is generated. 13 csb i i chip select control input 14 rdb i i read control input 15 wrb i i write control input 16 dgnd0 ? i digital ground (0.0 v) 17 d0 i/o i data input/output 18 d1 i/o i data input/output 19 d2 i/o i data input/output 20 d3 i/o i data input/output 21 d4 i/o i data input/output 22 d5 i/o i data input/output 23 d6 i/o i data input/output 24 d7 i/o i data input/output 25 d8 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?).
fedl7074-003-01 ML7074-003 5/93 26 d9 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?). 27 d10 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?). 28 d11 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?). 29 d12 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?). 30 d13 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?). 31 d14 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?). 32 d15 i/o i data input/output fix to input state when using in 8-bit bus access (cr11-b5 = ?1?). 33 dv dd 1 ? ? digital power supply 34 a0 i i address input 35 a1 i i address input 36 a2 i i address input 37 a3 i i address input 38 a4 i i address input 39 a5 i i address input 40 a6 i i address input 41 a7 i i address input 42 pdnb i ?0? power down input ?0?: power down reset ?1?: normal operation 43 clksel i i sync and bclk i/o control input ?0?: sync and bclk become inputs ?1?: sync and bclk become outputs 44 dgnd1 ? ? digital ground (0.0 v) 45 gpi0 i i general-purpose input pin 0 (5 v tolerant input) /secondary function: dial pulse detect input pin 46 gpi1 i i general-purpose input pin 1 (5 v tolerant input) 47 gpo0 o ?l? general-purpose output pin 0 (5 v tolerant output, can be pulled up externally) /secondary function: dial pulse transmit pin 48 gpo1 o ?l? general-purpose output pin 1 (5 v tolerant output, can be pulled up externally) 49 av dd ? ? analog power supply 50 ain0p i i amp0 non-inverted input 51 ain0n i i amp0 inverted input 52 gsx0 o ?hi-z? amp0 output (10 k ? driving) 53 gsx1 o ?hi-z? amp1 output (10 k ? driving) 54 ain1n i i amp1 inverted input 55 avref o ?l? analog signal ground (1.4 v)
fedl7074-003-01 ML7074-003 6/93 56 vfro0 o ?hi-z? amp2 output (10 k ? driving) 57 vfro1 o ?hi-z? amp3 output (10 k ? driving) 58 agnd ? analog ground (0.0 v) 59 dgnd2 ? digital ground (0.0 v) 60 xi i i 4.096 mhz crystal oscillator i/f, 4.096 mhz clock input 61 xo o ?h? 4.096 mhz crystal oscillator i/f 62 dv dd 2 ? digital power supply 63 tst3 i ?0? test control input 3: normally input ?0?. 64 tst2 i ?0? test control input 2: normally input ?0?.
fedl7074-003-01 ML7074-003 7/93 absolute maximum ratings parameter symbol conditions rating unit analog power supply voltage vda ? ? 0.3 to 5.0 v digital power supply voltage v dd ? ? 0.3 to 5.0 v analog input voltage vain analog pins ? 0.3 to v dd + 0.3 v vdin1 normal digital pins ? 0.3 to v dd + 0.3 v digital input voltage vdin2 5 v tolerant pins ? 0.3 to 6.0 v storage temperature range tstg ? ? 55 to +150 ? c recommended operating conditions (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditions min. typ. max. unit analog power supply voltage vda ? 3.0 3.3 3.6 v digital power supply voltage v dd ? 3.0 3.3 3.6 v operating temperature range ta ? ? 20 ? 60 ? c vih1 digital input pins 2.0 ? v dd + 0.3 v digital high level input voltage vih2 gpi0 and gpi1 pins 2.0 ? 5.5 v digital low level input voltage vil digital pins ? 0.3 ? 0.8 v digital input rise time tir digital pins ? 2 20 ns digital input fall time tif digital pins ? 2 20 ns digital output load capacitance cdl digital pins ? ? 50 pf capacitance of bypass capacitor for avref cvref between avref and agnd 2.2+0.1 ? 4.7+0.1 ? f master clock frequency fmck mck ? 0.01% 4.096 +0.01% mhz pcm shift clock frequency fbclk bclk (at input) 64 ? 2048 khz pcm sync signal frequency fsync sync (at input) ? 8.0 ? khz clock duty ratio drclk mck, bclk (at input) 40 50 60 % tbs bclk to sync (at input) 100 ? ? ns pcm sync timing tsb sync to bclk (at input) 100 ? ? ns pcm sync signal width tws sync (at input) 1bclk ? 100 ? s
fedl7074-003-01 ML7074-003 8/93 electrical characteristics dc characteristics (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditions min. typ. max. unit iss standby state (pdnb = ?0?, v dd = 3.3 v, ta = 25c) ? 5.0 20.0 ? a i dd 1 operating state 1 in the pcm/if mode (sc_en = ?1?, pcmif_en = ?1?, afe_en = ?1?, trans_en = ?1?) connect a 4.096 mhz crystal oscillator between xi and xo. ? 45.0 55.0 ma power supply current i dd 2 operating state 2 when operating the whole system (sc_en = ?1?, pcmif_en = ?0?, trans_en = ?0?, afe_en = ?0?) connect a 4.096 mhz crystal oscillator between xi and xo. ? 50.0 65.0 ma iih vin = dv dd ? 0.01 1.0 ? a digital input pin input leakage current iil vin = dgnd ? 1.0 ? 0.01 ? ? a iozh vout = dv dd ? 0.01 1.0 ? a digital i/o pin output leakage current iozl vout = dgnd ? 1.0 ? 0.01 ? ? a high level output voltage voh digital output pins, i/o pins ioh = 4.0 ma ioh = 1.0 ma (xo pin) 2.2 ? ? v low level output voltage vol digital output pins, i/o pins iol = ? 4.0 ma iol = ? 1.0 ma (xo pin) ? ? 0.4 v input capacitance *1 cin input pins ? 8 12 pf note: *1 guaranteed design value
fedl7074-003-01 ML7074-003 9/93 analog interface (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditions min. typ. max. unit input resistance *1 rin ain0n, ain0p, ain1n 10 ? ? m ? output load resistance rl gs x0, gsx1, vfro0, vfro1 10 ? ? k ? output load capacitance cl analog output pins ? ? 50 pf offset voltage vof vfro0, vfro1 ? 40 ? 40 mv output voltage level *2 vo gsx0, gsx1, vfro0, vfro1 rl = 10 k ? ? ? 1.3 vpp notes: *1 guaranteed design value *2 ? 7.7 dbm (600 ? ) = 0 dbm0, +3.17 dbm0 = 1.3 vpp
fedl7074-003-01 ML7074-003 10/93 ac characteristics codec (speech codec in g.711 ( ? -law) mode) (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) conditions parameter symbol frequency (hz) level (dbm0) min. typ. max. unit lt1 0 to 60 25 ? ? db lt2 300 to 3000 ? 0.15 ? 0.20 db lt3 1020 reference value ? lt4 3300 ? 0.15 ? 0.80 db lt5 3400 0 ? 0.80 db transmit frequency characteristics lt6 3968.75 0 13 ? ? db lr2 0 to 3000 ? 0.15 ? 0.20 db lr3 1020 reference value ? lr4 3300 ? 0.15 ? 0.80 db lr5 3400 0 ? 0.80 db receive frequency characteristics lr6 3968.75 0 13 ? ? db sdt1 3 35 ? ? dbp sdt2 0 35 ? ? dbp sdt3 ? 30 35 ? ? dbp sdt4 ? 40 28 ? ? dbp transmit signal to noise ratio [*1] sdt5 1020 ? 45 23 ? ? dbp sdr1 3 35 ? ? dbp sdr2 0 35 ? ? dbp sdr3 ? 30 35 ? ? dbp sdr4 ? 40 28 ? ? dbp receive signal to noise ratio [*1] sdr5 1020 ? 45 23 ? ? dbp gtt1 3 ? 0.2 ? 0.2 db gtt2 ? 10 reference value ? gtt3 ? 40 ? 0.2 ? 0.2 db gtt4 ? 50 ? 0.6 ? 0.6 db transmit inter-level loss error gtt5 1020 ? 55 ? 1.2 ? 1.2 db gtr1 3 ? 0.2 ? 0.2 db gtr2 ? 10 reference value ? gtr3 ? 40 ? 0.2 ? 0.2 db gtr4 ? 50 ? 0.6 ? 0.6 db receive inter-level loss error gtr5 1020 ? 55 ? 1.2 ? 1.2 db nidlt ? analog input = avref ? ? ? 68 dbm0p idle channel noise [*1] nidlr ? pcmi = ?1? ? ? ? 72 dbm0p transmit absolute level [*2] avt 1020 0 0.285 0.320 0.359 vrms receive absolute level [*2] avr 1020 0 0.285 0.320 0.359 vrms psrrt ? 30 ? ? db power supply noise reject ratio psrrr noise frequency range: 0 to 50 khz noise level: 50mvpp ? 30 ? ? db notes: *1 using p-message filter *2 0.320 vrms = 0 dbm0 = ? 7.7 dbm (600 ? )
fedl7074-003-01 ML7074-003 11/93 gain setting (speech codec in g.711 ( ? -law) mode) (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit transmit and receive gain setting accuracy gac ? ? 1.0 ? 1.0 db tone output (speech codec in g.711 ( ? -law) mode) (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit frequency deviation fdft relative to set frequency ? 1.5 ? 1.5 % output level olev relative to set gain ? 2.0 ? 2.0 db dtmf detector, other detector s (speech codec in g.711 ( ? -law) mode) (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit detect level accuracy dlac relative to set detect level ? 2.5 ? 2.5 db echo canceller (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit in the analog i/f mode in the pcm i/f (16-bit linear) mode 35 echo attenuation eres in the pcm i/f (g.711) mode ? 30 ? db erasable echo delay time tect ? ? ? 32 ms measurement method sin sout delay white noise generator rout rin att e.r.l (echo return loss) echo delay time echo canceller lpf 5 khz level meter
fedl7074-003-01 ML7074-003 12/93 pdnb, xo, avref timings (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit power down signal pulse width tpdnb pdnb pin 1 ? ? ? s oscillation start-up time txtal ? ? 2+ ? 100 ms avref rise time tavref avref = 1.4 (90%) c5 = 4.7 ? f, c6 = 0.1 ? f (see fig. 9.) ? ? 600 ms initialization mode start-up time tinit ? ? 1 ? s * ?? is a value that depends on the oscillation stab ilizing time when using a crystal oscillator. fig. 1 pdnb, xo, and avref timings pdnb avref about 1.4 v 0 v vdd xo 0 v vdd txtal 0 v t avref dvdd, avdd 0 v vdd t pdnb "1" "0" cr5-b7 (ready) initialization mode t init
fedl7074-003-01 ML7074-003 13/93 pcm i/f mode (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit bit clock frequency fbclk cdl = 20pf(at output) ? 0.1% 64 +0.1% khz bit clock duty ratio dbclk cdl = 20pf(at output) 45 50 55 % sync signal frequency fsync cdl = 20pf(at output) ? 0.1% 8 +0.1% khz dsync1 cdl = 20pf(at output) at 64 khz output 12.4 12.5 12.6 % sync signal duty ratio dsync2 cdl = 20pf(at output) at 128 khz output 6.24 6.25 6.26 % tbs bclk to sync (at output) 100 ? ? ns transmit/receive signal sync timing tsb sync to bclk (at output) 100 ? ? ns input setup time tds ? 100 ? ? ns input hold time tdh ? 100 ? ? ns tsdx ? ? 100 ns digital output delay time txd1 ? ? 100 ns txd2 ? ? 100 ns digital output hold time txd3 pcmo pin pull-up, pull-down resistors rdl = 1 k ? , cdl = 50 pf ? ? 100 ns 01 msb lsb tws tds tdh bclk sync pcmi tbs tsb 2 3 4 5 6 7 8 - 16 g.711 lsb g.726 lsb 16-bit linear fig. 2 pcm i/f mode input timing (long frame) 01 tws tds tdh bclk sync pcmi tbs tsb 2 3 4 5 6 7 8 9 - msb lsb g.726 lsb g.711 17 lsb 16-bit linear fig. 3 pcm i/f mode input timing (short frame)
fedl7074-003-01 ML7074-003 14/93 01 lsb tws bclk sync pcmo tbs tsb 2 3 4 5 6 7 8 9 - msb hi-z tsdx txd1 txd2 txd3 g.711 lsb g.726 17 lsb txd3 16-bit linear fig. 4 pcm i/f mode output timing (long frame) 01 lsb tws bclk sync pcmo tbs tsb 2 3 4 5 6 7 8 9 10 msb hi-z txd1 txd2 txd3 g.711 lsb g.726 - 18 lsb 16-bit linear txd3 fig. 5 pcm i/f mode out put timing (short frame)
fedl7074-003-01 ML7074-003 15/93 control register interface (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit address setup time tas 10 ? ? ns address hold time tah 10 ? ? ns write data setup time twds 10 ? ? ns write data hold time twdh 10 ? ? ns csb setup time tcs 10 ? ? ns csb hold time tch 10 ? ? ns wrb pulse width tww 10 ? ? ns read data output delay time trdd ? ? 20 ns read data output hold time trdh 3 ? ? ns rdb pulse width trw 25 ? ? ns csb disable time tcd cl = 50 pf 10 ? ? ns fig. 6 control register interface a7-a0 input d7-d0 i/o csb input wrb input rdb input write timing read timing tas tah twds twdh tch trdd tcs trdh tww trw a1 d1 input a2 d2 output tcs tch tas tah tcd
fedl7074-003-01 ML7074-003 16/93 transmit and receive buffer interface (in frame mode) (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit fr1b setup time tf1s 3 ? ? ns fr1b output delay time tf1d ? ? 20 ns address setup time tas 10 ? ? ns address hold time tah 10 ? ? ns write data setup time twds 10 ? ? ns write data hold time twdh 10 ? ? ns csb setup time tcs 10 ? ? ns csb hold time tch 10 ? ? ns wrb pulse width tww 10 ? ? ns fr0b setup time tf0s 3 ? ? ns fr0b output delay time tf0d ? ? 20 ns read data output delay time trdd ? ? 30 ns read data output hold time trdh 3 ? ? ns rdb pulse width trw 35 ? ? ns csb disable time tcd cl = 50 pf 10 ? ? ns fig. 7 transmit and receive buffer interface (in frame mode) a7-a0 input d15-d0 i/o csb input wrb input rdb input write timing read timing tas tah twds twdh tch trdd tcs trdh tww trw a1 d1 input a2 d2 output tcs tch tas tah fr1b output fr0b output tf1s tf1d tf0s tf0d tcd a7-a0 input d15-d0 i/o csb input wrb input rdb input write timing read timing tas tah twds twdh tch trdd tcs trdh tww trw a1 d1 input a2 d2 output tcs tch tas tah fr1b output fr0b output tf1s tf1d tf0s tf0d tcd
fedl7074-003-01 ML7074-003 17/93 transmit and receive buffer interface (in dma mode) (unless otherwise specified, av dd = 3.0 to 3.6 v, dv dd 0, 1, 2 = 3.0 to 3.6 v, ag nd = dgnd0, 1, 2 = 0.0 v, ta = ? 20 to +60 ? c) parameter symbol conditio ns min. typ. max. unit dmarq1b setup time tdr1s 3 ? ? ns tdr1rd ? ? 25 ns dmarq1b output delay time tdr1fd ? ? 25 ns address setup time tas 10 ? ? ns address hold time tah 10 ? ? ns write data setup time twds 10 ? ? ns write data hold time twdh 10 ? ? ns ack setup time taks 10 ? ? ns ack hold time takh 10 ? ? ns wrb pulse width tww 10 ? ? ns dmarq0b setup time tdr0s 3 ? ? ns tdr0rd ? ? 20 ns dmarq0b output delay time tdr0fd ? ? 25 ns read data output delay time trdd ? ? 30 ns read data output hold time trdh 3 ? ? ns rdb pulse width trw 35 ? ? ns ackb disable time tad cl = 50 pf 10 ? ? ns fig. 8 transmit and receive buffer interface (in dma mode) a7-a0 input d15-d0 i/o ack0b input wrb input rdb input write timing read timing tas tah twds twdh trdd taks trdh tww trw a1 d1 input a2 d2 output takh tas tah dmarq1b output dmarq0b output tdr1s tdr1rd tdr0s tdr0rd ack1b input takh taks tad tdr1fd tdr0fd
fedl7074-003-01 ML7074-003 18/93 pin function descriptions ain0n, ain0p, gsx0, ain1n, gsx1 these are the analog transmit input and transmit level adjust pins. each of ain0n and ain1n is connected to each of the inverting input pins of the built-in transmit amp lifiers amp0 and amp1, and ain0p is connected to the non-inverting input pin of amp0. in addition, gsx0 and gsx1 are connected to the output pins of amp0 and amp1, respectively. the selection between amp0 and amp1 is made by cr10-b0. see fig. 9 for the method of making level adjustment. during the power down mode (when pdnb = ?0? or cr0-b7 = ?1?), the outputs of gsx0 and gsx1 go to the high impedance state. if amp0 is not used in the specific application of this lsi, short gsx0 with ain0n and connect ain0p with avref. when amp1 is not used, short gsx1 with ain1n. notice: it is recommended to select the amplifier to be used before the conversation starts, since a small amount of noise will be generated if the amplifier selection is changed while conversation is in progress. vfro0, vfro1 these are analog receive output pins and are connected to th e output pins of the built-in receive amplifiers amp2 and amp3, respectively. the output signals of vfro0 and vfro1 can be selected using cr10-b1 and cr10-b2, respectively. when selected (?1?), the received signal will be output, and when deselected (?0?), the avref signal (about 1.4 v) will be output. in the power down mode , these pins will be in the high impedance state. it is recommended to use these output signals via dc coupling capacitors. notice: it is recommended to select the amplifier to be used before the conversation starts, since a small amount of noise is generated if the output selection is changed while the conversation is in progress. at the time of resetting or releasing from the reset stat e, it is recommended to select the avref as outputs of vfro0 and vfro1. fig. 9 analog interface r1 r2 a/d d/a vref ain1n gsx1 avref ???? ain0n gsx0 10k ? ain0p r3 r4 c6 0.1 ? f c1 c2 c3 c4 vfro0 10k ? vfro1 10k ? c5 2.2 to 4.7 ? f cr10-b0 cr10-b1 cr10-b2 gain = r2/r1 <= 63(+36db) r1 : variable r2 : max 500k + gain = r4/r3 <=63(+36db) r3 : variable r4 : max 500k out : max 1.3vp-p out : max 1.3vp-p amp0 amp1 amp3 amp2
fedl7074-003-01 ML7074-003 19/93 avref this is the output pin for the analog signal ground potential. the output potential at this pin will be about 1.4 v. connect a 2.2 to 4.7 ? f (aluminum electrolytic type) capacitor and a 0.1 ? f (ceramic type) capacitor in parallel between this pin and the gnd pin as bypass capacitors. the output at the avref pin goes to 0.0 v in the power down mode. the voltage starts rising after the power down mode is released (pdnb = ?1? and also cr0-b7 = ?0?). the rise time is about 0.6 sec. xi, xo these are the pins for either connecting the crystal oscillator for the master clock or for inputting an external master clock signal. the oscillations of the master clock oscillator will be stopped during a power down due to the pdnb signal or during a software power down due to cr0-b7 (spdn). the oscillations start when the power down condition is released, and the internal clock supply of the lsi will be started after counting up the oscillation stabilization period (of about 16 ms). examples of crystal oscillato r connection and external master clock input are shown in fig. 10. fig. 10 examples of oscilla tor circuit and clock input pdnb this is the power down control input pin. the power down m ode is entered when this pin goes to ?0?. in addition, this pin also has the function of resetting the lsi. in order to prevent wrong operation of the lsi, carry out the initial power-down reset after switching on the power using this pdnb pin. also, keep the pdnb pin at ?0? level for 1 ? s or more to initiate the power down state. further, it is possible to carry out a power down reset of the lsi when the power is being supplied by performing control of cr0-b7 (spdn) in the sequence ?0? ? ?1? ? ?0?. the ready signal (cr5-b7) goes to ?1? about 1.0 second afte r the power down mode is released thereby entering the mode of setting various functions (initialization mode). see fig. 1 for the timings of pdnb and avref, xo, and the initialization mode. notice: at the time of switching on the power, start from the power down mode using pdnb. dv dd 0, dv dd 1, dv dd 2, av dd these are power supply pins. dv dd 0, 1, 2 are the power supply pins for the digital circuits while av dd is the power supply pin for the analog circuits of the lsi. connect these pins together in the neighborhood of the lsi and connect as bypass capacitors a 10 ? f electrolytic capacitor and a 0.1 ? f ceramic capacitor in parallel between the dgnd and agnd pins. dgnd0, dgnd1, dgnd2, agnd these are ground pins. gdnd0, 1, 2 are the ground pins for the digital circuits and agnd is the ground pin for the analog circuits of the lsi. connect these pi ns together in the neighborhood of the lsi. xi xo r x'tal c1 c2 4.096 mhz x'tal(4.096 mhz) daishinku co., ltd. at-49 c2 r 10pf 1m ? pdnb to internal circuits cr0-b7 (spdn) xi xo open pdnb to internal circuits cr0-b7 (spdn) c1 5pf
fedl7074-003-01 ML7074-003 20/93 tst0, tst1, tst2, tst3 these are input pins for testing purposes only. keep the inputs to these pins at the ?0? level during normal use conditions. intb this is the interrupt request output pin. an ?l? level is output for a duration of about 1.0 ? sec at this pin when there is a change in state of an interrupt cause. this output will be maintained at the ?h? level when there is no change in state of any of the interrupt causes. the actual interrupt cause generating the interrupt can be verified by reading cr3 and cr4. the different interrupt causes are described below. ? underflow error (cr3-b0) an interrupt is generated when an internal read from th e receive buffer occurs before the writing into the receive buffer from the mcu has been completed. an interrupt is generated when a normal writing is ma de in the receive buffer by the mcu and the underflow error is released. ? overrun error (cr3-b1) an interrupt is generated when an internal write of th e next data into the transmit buffer occurs before the transmit buffer data read out from the mcu has been completed. an interrupt is generated when a normal read out is made from the transmit buffer by the mcu and the overrun error is released. ? when a dial pulse is detected (cr4-b6). ? when a dtmf signal is detected (cr4-b4). ? when dtmf_codec0, 1, 2, 3 are detected (cr4-b0, b1, b2, b3). an interrupt is generated when a dtmf signal is detected. an interrupt is generated when there is a change from the dtmf signal det ected state to the no-detected state. an interrupt is generated when there is a change in th e detected code (cr4-b0, b1 , b2, b3) in the condition in which a dtmf signal is being detected. ? when tone0 is detected (cr3-b3). an interrupt is generated when a 1650 hz tone signal is detected. an interrupt is generated when there is a change to the non-detection condition in the tone signal detection condition. ? when tone1 is detected (cr3-b4). an interrupt is generated when a 2100 hz tone signal is detected. an interrupt is generated when there is a change to the non-detection condition in the tone signal detection condition. ? when fgen_rq is generated (cr3-b6). an interrupt is generated when the fsk generator makes a request for the next data to be transmitted. an interrupt is generated when there is a change from the condition in which the fsk generator is requesting for transmission data to the condition in which there is no reques t for internal fetch of the data to be transmitted next. ? when dsp_err is detected (cr3-b7). an interrupt is generated when any error occurs in the dsp inside the lsi.
fedl7074-003-01 ML7074-003 21/93 a0 to a7 these are the address input pins for us e during an access of the frame, dma, or control registers. the different addresses will be the following. transmit buffer (tx buffer) a7 to a0 = 10xxxxxxb (the lower 6 bits are not valid) receive buffer (rx buffer) a7 to a0 = 01xxxxxxb (the lower 6 bits are not valid) control register (cr) a7 to a0 = 00xxxxxxb d0 to d15 these are the data input/output pins for use during an access of the frame, dma, or control registers. connect pull-up resistors to these pins since they are i/o pins. when the 8-bit bus access method is selected by cr11-b5, only d0 to d7 become valid. since the higher 8 bits d8 to d15 will always be in the input state when the 8-bit bus access method is selected (cr11-b5 = ?1 ?), tie them to ?0? or ?1? inputs. csb this is the chip select input pin for use during a frame or control register access. rdb this is the read enable input pin for use du ring a frame, dma, or control register access. wrb this is the write enable input pin for use du ring a frame, dma, or control register access.
fedl7074-003-01 ML7074-003 22/93 fr0b (dmarq0b) ? fr0b (in frame mode, cr11-b7 = ?0?) this is the transmit frame output pin which outputs the signal when the transmit buffer is full during frame access. this pin outputs an ?l? level when the transmit buffer becomes full, and maintains that ?l? level output until a specific number of words are read out from the mcu. ? dmarq0b (in dma mode, cr11-b7 = ?1?) this is the dma request output pin which outputs the si gnal when the transmit buffer is full during dma access. this output becomes ?l? when the transmit buffer become s full, and returns to the ?h? level automatically on the falling edge of the read enable signal (rdb = ?1? ? ?0?) when there is an ac knowledgement signal (ack0b = ?0?) from the mcu. this relationship is repeated un til a specific number of words are read out from the mcu. fr1b (dmarq1b) ? fr1b (in frame mode, cr11-b7 = ?0?) this is the receive frame output pin which outputs the signal when the receive bu ffer is empty during frame access. this pin outputs an ?l? level when the receive buffer becomes empty, and maintains that ?l? level output until a specific number of words are written from the mcu. ? dmarq1b (in dma mode, cr11-b7 = ?1?) this is the dma request output pin which outputs th e signal when the receive buffer is empty during dma access. this output becomes ?l? when the receive buf fer becomes empty, and returns to the ?h? level automatically on the falling edge of the write enable signal (wrb = ?1? ? ?0?) when there is an acknowledgement signal (ack1b = ?0?) fr om the mcu. this relationship is repeated until a specific number of words are written from the mcu. ack0b this is the dma acknowledgement input pin for the dm arq0b signal during dma ac cess of the transmit buffer and becomes valid in the dma mode (cr11-b7 = ?1?). tie this pin to ?1? when using this lsi in the frame access mode (cr11-b7 = ?0?). ack1b this is the dma acknowledgement input pin for the dm arq1b signal during dma access of the receive buffer and becomes valid in the dma mode (cr11-b7 = ?1?). tie this pin to ?1? when using this lsi in the frame access mode (cr11-b7 = ?0?). gpi0, gpi1 these are general-purpose input pins. the state (?1? or ?0?) of each of these gpi0 and gpi1 pins can be read out respectively from cr16-b0 and cr16-b1. further, gpi0 becomes the input pin for the dial pulse detector (dpdet) in the secondary functions. gpo0, gpo1 these are general-purpose output pins. the values set in cr17-b0 and cr17-b1 are output at these pins gpo0 and gpo1, respectively. further, gpo0 becomes the output pin for the dial pulse generator (dpgen) in the secondary functions.
fedl7074-003-01 ML7074-003 23/93 clksel this is the input/output control input pin of sync and bclk. the pin becomes input at ?0? level and output at ?1? level. sync this is the 8 khz sync signal input/output pin of pcm signals. when clksel is ?0?, input continuously an 8 khz clock synchronous with bclk. further, when clksel is ?1?, this pin outputs an 8 khz clock synchronous with bclk. long frame synchronization is used wh en cr0-b1 (long/short) is ?0? and short frame synchronization is used when it is ?1?. bclk this is the shift clock input/output pin for the pcm signal. when clksel is ?0?, it is necessary to input to this pin a clock signal that is synchronous with sync. input a 64 to 2048 khz clock when the g.711 mode or the g.726 mode has been selected, and input a 128 to 2048 khz clock when the 16-bit linear mode has been selected. when clksel is ?1?, this pin outputs a clock that is synchronous with sync. this pin outputs a 64 khz clock when the g.711 mode or the g.726 mode has been selected, and outputs an 128 khz clock when the 16-bit linear mode or g.729.a mode has been selected. note: the input/output control and frequencies of the a bove sync and blck signals will be as shown in table 1 below. table 1 input/output control of sync and bclk clksel sync bclk remarks ?0? input (8 khz) input (64 khz to 2048 khz) input a continuous clock after starting the power supply. input a 64 to 2048 khz clock when g.711 or g.726 is selected. input a 128 to 2048 khz clock when 16-bit linear mode is selected. ?1? output (8 khz) output (64 khz or 128 khz) an ?l? level is output during the power down mode. a 64 khz clock is output when g.711 or g.726 is selected. a 128 khz clock is output when g.729.a or 16-bit linear mode is selected. pcmo this is the pcm signal output pin for the transmitting section. the pcm signal is output in synchronization with the rising edges of sync and bclk. the pcmo outputs the data only during the valid data segment in the selected coding format and goes to th e high impedance state during all othe r segments. the basic timing chart of the pcm i/f mode is shown in fig. 11. the pcmo output will be in the high impedance state when the mutual conversion function is not used (cr11-b0 = ?0?) or when the pcm i/f mode is not used (cr12-b0 = ?0?). pcmi this is the pcm signal input pin for the receiving section. the data is entered starting from the msb by shift on the falling edge of bclk. the basic timing chart of the pcm i/f mode is shown in fig. 11. fix input with ?0? or ?1? when the mutual conversion function is not used (cr11-b0 = ?0?) or when the pcm i/f mode (cr12-b0 = ?0?) is not used.
fedl7074-003-01 ML7074-003 24/93 fig. 11 pcm i/f mode timing diagram bclk (in/out) pcmi sync (in/out) 16-bit linear long frame synchronization mode (cr0-b1 = "0") d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 bclk (in/out) pcmo sync (in/out) g.711 ( ? -law, a-law) short frame synchronization mode (cr0-b1 = "1") d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 bclk (in/out) pcmo sync (in/out) g.726 (32 kbps) long frame synchronization mode (cr0-b1 = "0") d3 d2 d1 d0 bclk (in/out) pcmo sync (in/out) g.726 (32 kbps) short frame synchronization mode (cr0-b1 = "1") d3 d2 d1 d0 d3 d2 d1 d0 d3 d2 d1 d0 hi-z hi-z hi-z hi-z hi-z hi-z hi-z hi-z hi-z pcmo d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 hi-z hi-z hi-z pcmi d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 pcmi d3 d2 d1 d0 d3 d2 d1 d0 pcmi d3 d2 d1 d0 d3 d2 d1 d0 bclk (in/out) pcmi sync (in/out) d15 d14 d13 d12 d11 d10 d9 d8 bclk (in/out) pcmo sync (in/out) 16-bit linear short frame synchronization mode (cr0-b1 = "1") hi-z pcmo hi-z hi-z pcmi d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 d15 d14 d13 d12 d11 d10 d9 d8 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d7 d6 d5 d15 d14 d13 d12 d11 d10 d9 d8 : : d15 d14 d13 d12 d11 d10 d9 d8 hi-z d7 d6 d5 d4 d3 d2 d1 d0 d7 d6 d5 d4 d3 d2 d1 d0 d15 d14 d13 d12 d11 d10 d9 d8 d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d7 d6 d15 d14 d13 d12 d11 d10 d9 d8 : : g.711 ( ? -law, a-law) long frame synchronization mode (cr0-b1 = "0")
fedl7074-003-01 ML7074-003 25/93 function description on the transmit and receive buffers the controllable parameters of the transmit an d receive buffers are shown in table 2 below. table 2 controllable parameters of transmit and receive buffers content changeable parameter initial value remarks speech codec g.729.a/g.726(32kbps) /g.711( ? -law, a-law) g.729.a the buffering size of the fifo is changed automatically depending on the speech codec type. buffering time 10 ms/20 ms 10 ms the number of words is changed automatically depending on the buffering time. accessing method frame or dma frame ? fifo data width 16-bit/8-bit 16-bit the number of words is changed automatically depending on the data width. transmit and receive buffer sizes the transmit and receive buffers have a double buffer configuration of the fifo (first in first out) type, and one buffer can buffer data of 10 msec or 20 msec. the timing of generation of the frame signals (fr0b, fr1b) requested to the mcu when the transmit buffer is full or the receive buffer is empty, an d the timing of generation of the dma request signals (dmarq0b, dmarq1b) depend on the buffering time. further, the number of words of fifo is changed automatically depending on the selected speech codec type and the fifo data width. the buffer size and the number of words for the different speech codec types and data widths are shown in table 3. table 3 buffer size and number of words of transmit and receive buffers 10 ms mode 20 ms mode speech codec buffer size 16-bit 8-bit buffer size 16-bit 8-bit g.729.a (8 kbps) 10 bytes 5 words 10 words 20 bytes 10 words 20 words g.726 (32 kbps) 40 bytes 20 words 40 words 80 bytes 40 words 80 words g.711 (64 kbps) 80 bytes 40 words 80 words 160 bytes 80 words 160 words
fedl7074-003-01 ML7074-003 26/93 transmit and receive buffers configuration the timings of accessing the transmit and receive buffers are shown in fig. 12. although bot h transmit and receive buffers have a double buffer configuration, they can be accessed as a single buffer from the mcu. fig. 12 timings of accessing the transmit and receive buffers transmit buffer tx buffer0 10 m/20 msec receive buffer rx buffer0 writing in from mcu reading out from mcu tx buffer1 tx buffer0 rx buffer1 rx buffer0
fedl7074-003-01 ML7074-003 27/93 data width selection (16-bit mode, 8-bit mode) in the method of accessing the transmit a nd receive buffers, it is possible to sel ect data width of 16 bits or 8 bits using the control register bit cr11-b5. during the 16-bit mode, the access is made with a data width of 16 bits and the data bits d15 to d0 are accessed. in the 8-bit mode, the transmit and receive da ta are input or output to d7 to d0. during the 8-bit access mode, the bits d15 to d8 will always be in the input state. data storage format the data storage formats during transmission and reception depending on the settings of the different parameters are shown in fig. 13, fig. 14, and fig. 15. a. g.729.a fig. 13 g.729.a data format g.729.a(8 kbps) 1 frame 80-bit/10 msec 2 frames 160-bit/20 msec bit15 bit0 bit31 bit16 bit63 bit48 bit79 bit64 (a) 10 ms/16-bit mode (b) 20 ms/16-bit mode first frame bit7 bit0 (c) 10 ms/8-bit mode first frame bit15 bit8 bit71 bit64 bit79 bit72 (d) 20 ms/8-bit mode d15 d0 d15 d0 d7 d0 d7 d0 word count 1 2 4 5 bit47 bit32 3 word count 1 2 9 10 bit7 bit0 bit15 bit8 bit71 bit64 bit79 bit72 bit7 bit0 bit15 bit8 bit71 bit64 bit79 bit72 bit15 bit0 bit31 bit16 bit63 bit48 bit79 bit64 bit47 bit32 bit15 bit0 bit31 bit16 bit63 bit48 bit79 bit64 bit47 bit32 first frame second frame word count 1 2 9 10 11 12 19 20 first frame word count 1 2 4 5 3 6 7 9 10 8 second frame gb2 0 gb2 1 gb2 2 gb2 3 ga2 0 ga2 1 ga2 2 s2 0 s2 1 s2 2 s2 3 c2 0 c2 1 c2 2 c2 3 c2 4 c2 5 c2 6 c2 7 c2 8 c2 9 c2 10 c2 11 c2 12 p2 0 p2 1 p2 2 p2 3 p2 4 gb1 0 gb1 1 gb1 2 gb1 3 ga1 0 ga1 1 ga1 2 s1 0 s1 1 s1 2 s1 3 c1 0 c1 1 c1 2 c1 3 c1 4 c1 5 c1 6 c1 7 c1 8 c1 9 c1 10 c1 11 c1 12 p0 p1 0 p1 1 p1 2 p1 3 p1 4 p1 5 p1 6 p1 7 l3 0 l3 1 l3 2 l3 3 l3 4 l2 0 l2 1 l2 2 l2 3 l2 4 l0 word count 1 2 4 5 3 l1 0 l1 1 l1 2 l1 3 l1 4 l1 5 l1 6 b15 b14 b13 b12 b11 b10 b9 b8 b7 b6 b5 b4 b3 b2 b1 b0 g.729.a coding, word configuration word configuration symbol name bit no.
fedl7074-003-01 ML7074-003 28/93 b. g.726 (32 kbps) fig. 14 g.726 (32 kbps) data format g.726(32 kbps) 4-bit/125 ? sec buffer configuration 80 samples/10 msec 160 samples/20 msec (a) 10 ms/16-bit mode (b) 20 ms/16-bit mode bit3 bit2 bit1 bit0 adpcm coding configuration (c) 10 ms/8-bit mode (d) 20 ms/8-bit mode 1 0 3 2 d15 d0 d15 d0 d7 d0 d7 d0 word configuration 1 2 19 20 word count 1 2 39 40 word count 1 2 39 40 word count 1 2 79 80 word count 75 2 1 0 79 6 5 4 3 74 73 72 7 78 77 76 b3 ? b0 b3 ? b0 b3 ? b0 1 0 3 2 77 76 79 78 155 2 1 0 159 6 5 4 3 154 153 152 7 158 157 156 b3 ? b0 157 156 159 158
fedl7074-003-01 ML7074-003 29/93 c. g.711 (64 kbps) fig. 15 g.711 data format g.711(64 kbps, ? -law/a-law) 8 bit/125 ? sec buffer configuration 80 samples/10 msec 160 samples/20 msec (a) 10 ms/16-bit mode (b) 20 ms/16-bit mode bit7 bit6 bit5 bit4 pcm coding configuration bit3 bit2 bit1 bit0 1 0 3 157 156 159 158 0 (c) 10 ms/8-bit mode 78 79 (d) 20 ms/16-bit mode word configuration 1 2 39 40 . . 1 2 79 80 . . 1 2 79 80 . . 0 158 159 1 2 159 160 . . word count word count word count word count 1 0 3 77 76 79 78 bit7 bit0 bit7 bit0 2 2 bit7 bit0 2 1 1 bit7 bit0 d15 d0 d7 d0 d15 d0 d7 d0
fedl7074-003-01 ML7074-003 30/93 10 msec write in by mcu fr0b (output) fr1b (output) sc_en (cr2-b7) read out by mcu 1) start sc_en "0" ? "1" the speech codec starts within about 250 ? sec after sc_en has been set to "1". during the first 10 ms (frame no. 1), initialization and no-tone data output are made, and encoding and decoding are started from frame no. 2. request for received data is made after the speech co dec has been started. 2) operating the data written at frame no. 1 is decoded (r1) at the next frame no. 2. this operation is repeated until stopping. the data encoded (t1) at frame no. 2 is read out at the next frame no. 3. this operation is repeated until stopping. 3) stop sc_en "1" ? "0" the data of the frame (frame no. 10) in which the stop is set becomes invalid. within a maximum of 250 ? sec after sc_en has been set to "0", the encoder stops writing the data, and no-tone data is output after the encoder has stopp ed. 4) error processing receive error: frame no. 4 is an example of receive error occurrence. when the writing of data does not get completed within the write valid segment, rx_err becomes "1" and an interrupt is generate d. the state of rx_err will be maintained during and after the next frame until the end of a frame in which the receive buffer has been written normally. when an error has occurred in frame no. 4, the decoding processing in frame no. 5 is carried out according to the frame loss co mpensation processing (bfi: bad frame indicator) stipulated in the g.729.a standard. transmit error: frame no. 6 is an example of transmit error occurrence. when the reading of data does not get completed within the read valid segment, tx_err becomes "1" and an interrupt is generated . the state of tx_err is maintained during and after the next frame until the end of a frame in which the transmit buffer has bee n read normally. even when the data read out does not end, the data in the transmit buffer will continue to be updated normally. 5) start interval an interval of 10.0 msec or more is necessary after the speech codec has stopped before it is started again. during this inter val, it is possible to change the speech codec. write valid segment: complete the writi ng of data to the rx buffer within 9.0 msec from the falling edge of fr1b. read valid segment: complete the data read out from the tx buffer within 9.0 msec from the falling edge of fr0b. enc init speech codec dec no-tone output / init t1 r1 t2 r2 t3 r3 t4 r4 (bfi processing) t5 r5 t6 r6 r9 write valid segment read out valid segment 1 2 3 4 5 6 7 frame no. 10 t9 t7 r7 8 t8 r8 9 tx_err (cr3-b1) rx_err (cr3-b0) 4) error intb (output) 4) error no-tone output stopped no-tone output stopped ? 3) stop maximum 250 ? sec 1) start maximum 250 msec init 5) start interval 10.0 ms or more ? 1 2) operating no-tone output / init fig. 16 g.729.a control timing (10 msec/frame mode) transmit and receive buffer control method the methods of controlling the tran smit and receive buffers dependin g on the different parameters are shown in figs. 16 to 19. a. g.729.a (10 msec/frame mode)
fedl7074-003-01 ML7074-003 31/93 10 msec write in by mcu fr0b (output) fr1b (output) sc_en (cr2-b7) read out by mcu 1) start sc_en "0" ? "1" the speech codec starts within about 250 ? sec after sc_en has been set to "1". the encoder carries out initialization during the first 10 msec (frame no. 1), and starts encoding from frame no. 2. the decoder carries out initialization during the first 20 msec (frame no. 1 and frame no.2), outputs no-tone data, and starts decoding from frame no. 3. request for received data is made after the speech codec has been started. 2) operating the data written at frames no. 1 and no. 2 is decoded (r1, r2) at the subsequent frames no. 3 and no. 4. this operation is rep eated until stopping. the data encoded (t1, t2) at frames no. 2 and no. 3 is read out at the subsequent frames no. 4 and no.5. this operation is rep eated until stopping. 3) stop sc_en "1" ? "0" the data of the frame (frame no. 10) in which the stop is set becomes invalid. within about 250 ? sec after sc_en has been set to "0", the encoder stops writing the data, and after the decoder has stopped, no-tone data is out put. 4) error processing receive error: frames no. 3 and no. 4 are examples of receive error occurrence. when the writing of data does not get completed within the write valid segment, rx_err becomes "1" and an interrupt is generate d. the state of rx_err will be maintained during and after the next frame until the end of a frame in which the receive buffer has been written normally. when an error has occurred in frames no. 3 and no. 4, the decoding processing in frames no. 5 and no. 6 is carried out accordin g to the frame loss compensation processing (bfi:bad frame indicator) stipulated in the g.729.a standard. transmit error: frames no. 6 and no. 7 are examples of transmit error occurrence. when the reading of data does not get completed within the read valid segment, tx_err becomes "1" and an interrupt is generated . the state of tx_err is maintained during and after the next frame until the end of a frame in which the transmit buffer has bee n read normally. even when the data read out does not end, the data in the transmit buffer will continue to be updated normally. 5) start interval an interval of 10.0 msec or more is necessary after the speech codec has stopped before it is started again. during this inter val, it is possible to change the speech codec. write valid segment: complete the writing of data to the rx buffer within 18.0 msec from the falling edge of fr1b. read valid segment: complete the data read out from the tx buffer within 18.0 msec from the falling edge of fr0b. enc init speech codec dec no-tone output / init t1 r1 t2 r2 t3 r3 (bfi processing) t4 r3 (bfi processing) t5 r5 t6 r6 write valid segment read out valid segment 1 2 3 4 5 6 7 frame no. 10 t9 t7 r7 8 t8 r8 9 tx_err (cr3-b1) rx_err (cr3-b0) 4) error intb (output) 4) error no-tone output stopped no-tone output stopped ? 3) stop maximum 250 ? sec 1) start maximum 250 msec init no-tone output / init 5) start interval 10.0 ms or more ? 1 no-tone output / init 2) operating fig. 17 g.729.a control timing (20 msec/frame mode) b. g.729.a (20 msec/frame mode)
fedl7074-003-01 ML7074-003 32/93 10 msec write in by mcu fr0b (output) fr1b (output) sc_en (cr2-b7) read out by mcu 1) start sc_en "0" ? "1" the speech codec starts within about 250 ? sec after sc_en has been set to "1". the encoder starts in the already initialized condition and starts encoding from frame no. 1. the decoder carries out initialization during the first 10 msec (frame no. 1), outputs no-tone data, and starts decoding from f rame no. 2. request for received data is made after the speech codec has been started. 2) operating the data written at frame no. 1 is decoded (r1) at the next frame no. 2. this operation is repeated until stopping. the data encoded (t1) at frame no. 1 is read out at the next frame no. 2. this operation is repeated until stopping. 3) stop sc_en "1" ?? "0" the data of the frame (frame no. 10) in which the stop is set becomes invalid. within about 250 ? sec after sc_en has been set to "0", the encoder stops writing the data, and no-tone data is output after the decoder has stopp ed. 4) error processing receive error: frame no. 4 is an example of receive error occurrence. when the writing of data does not get completed within the write valid segment, rx_err becomes "1" and an interrupt is generate d. the state of rx_err will be maintained during and after the next frame until the end of a frame in which the reception buffer h as been written normally. when an error has occurred in frame no. 4, the decoding processing in frame no. 5 is not carried out and no-tone data is output . in addition, the decoder of g.726 willalso be initialized at the same time. transmit error: frame no. 6 is an example of transmit error occurrence. when the reading of data does not get completed within the read valid segment, tx_err becomes "1" and an interrupt is generated. the state of tx_err is maintained during and after the next frame until the end of a frame in which the transmit buffer has bee n read normally. even when the data read out does not end, the data in the transmit buffer will continue to be updated normally. 5) start interval an interval of 10.0 msec or more is necessary after the speech codec has stopped before it is started again. during this inter val, it is possible to change the speech codec. write valid segment: complete the writing of data to the rx buffer within 9.0 msec fr om the falling edge of fr1b. read valid segment: complete the data read out from the tx buffer within 9.0 msec from the falling edge of fr0b. enc speech codec dec t1 r1 t2 r2 t3 r3 t4 r4 / no-tone output t5 r5 t6 r6 r9 write valid segment read out valid segment 1 2 3 4 5 6 7 frame no. 10 t9 t7 r7 8 t8 r8 9 tx_err (cr3-b1) rx_err (cr3-b0) 4) error intb (output) 4) error no-tone output / init stopped / init no-tone output /init stopped / init ? 3) stop maximum 250 ? sec 1) start maximum 250 ? sec t1 5) start interval 10.0 ms or more ? 1 t10 2) operating c. g.711 ( ? -law, a-law), g.726 (10 msec/frame mode) fig. 18 g.711 ( ? -law, a-law) and g.726 control timing (10 msec/frame mode)
fedl7074-003-01 ML7074-003 33/93 10 msec write in by mcu fr0b (output) fr1b (output) sc_en (cr2-b7) read out by mcu 1) start sc_en "0" ??? "1" the speech codec starts within about 250 ? sec after sc_en has been set to "1". the encoder starts in the already initialized condition and starts encoding (t1) from frame no. 1. the decoder carries out initialization during the first 10 msec (frame no. 1), outputs no-tone data, and starts decoding (r1) f rom frame no. 2. request for received data is made after the speech codec has been started. 2) operating the data written at frame no. 1 and frame no. 2 is decoded (r1, r2) at the next frames no. 3 and no. 4. this operation is repe ated until stopping. the data encoded (t1, t2) at the frames no. 1 and no. 2 is read out at the frames no. 3 and no. 4. this operation is repeated until stopping. 3) stop sc_en "1" ? "0" the data of the frame (frame no. 10) in which the stop is set becomes invalid. within about 250 ? sec after sc_en has been set to "0", the encoder stops writing the data, and no-tone data is output after the decoder has stopp ed. 4) error processing receive error: frame no. 3 and frame no. 4 are examples of receive error occurrence. when the writing of data does not get completed within the write valid segment, rx_err becomes "1" and an interrupt is generate d. the state of rx_err will be maintained during and after the next frame until the end of a frame in which the receive buffer has been written normally. when an error has occurred in frame no. 3 and frame no. 4, no decoding processing will be done in frame no. 5 and frame no. 6 b ut no-tone data is output. in addition, the decoder of g.726 will also be initialized at the same time. transmit error: frame no. 5 and frame no. 6 are examples of transmit error occurrence. when the reading of data does not get completed within the read valid segment, tx_err becomes "1" and an interrupt is generated . the state of tx_err is maintained during and after the next frame until the end of a frame in which the transmit buffer has bee n read normally. even when the data read out does not end, the data in the transmit buffer will continue to be updated normally. 5) start interval an interval of 10.0 msec or more is necessary after the speech codec has stopped before it is started again. during this inter val, it is possible to change the speech codec. write valid segment: complete the writing of data to the rx buffer within 18.0 msec from the falling edge of fr1b. read valid segment: complete the data read out from the tx buffer within 18.0 msec from the falling edge of fr0b enc speech codec dec t1 r1 t2 r2 t3 t4 r3 / no-tone output t5 r4 / no-tone output t6 r5 r8 write valid segment read out valid segment 1 2 3 4 5 6 7 frame no. 10 t9 t7 r6 8 t8 r7 9 tx_err (cr3-b1) rx_err (cr3-b0) 4) error intb (output) 4) error no-tone output/ init stopped / init no-tone output /init stopped / init ? 3) stop maximum 250 ? sec 1) start maximum 250 ? sec 5) restart 10.0 msec or more ? 1 t10 t1 2) operating d. g.711 ( ? -law, a-law), g.726 (10 msec/frame mode) fig. 19 g.711 ( ? -law, a-law) and g.726 control timing (20 msec/frame mode)
fedl7074-003-01 ML7074-003 34/93 method of controlling control registers the method of controlling the control registers is shown in fig. 20. this lsi contains 20 control registers cr0 to cr20 for carrying out various controls. further, the control bit (cr1-b7) assigned within such a control register, the address (cr6, cr7), and the data (cr8, cr9) are used to modify and control the data memory inside the dsp in this lsi. see the section on ?method of accessi ng and controlling the internal data memory? for details on how to access the data memory inside the dsp of this lsi. the higher two bits of the address of a control register will be ?0?. irrespective of the 16-bit or 8-bit data width selected in cr11-b5 (16b/8b), all contro l operations of control registers are made with an 8-bit data width using only data bits d7 to d0. when the data bus is being accessed in the 16-bit access mode, data bits d15 to d8 are configured as inputs while the data is written to the contro l register, and are configured as outputs while the data is read from the control register. when a control register write is being made, ?1? or ?0? is input to d15 to d8, and ?1? is read out during a control register read. fig. 20 method of controlling the control registers a7-a0 d7-d0 csb wrb rdb write read address data address data address = 00xxxxxxb
fedl7074-003-01 ML7074-003 35/93 method of accessing transmit and receive buffers a. in the frame mode (cr11-b7 = ?0?) the control timing and the method of accessing the transmit buffer (tx buffer) during the frame mode are shown in fig. 21. when the transmit buffer, which stores the compressed speech data of the transmit side (the speech compressing side), becomes full, a read request is made to the mpu by taking fr0b from the ?h? state to the ?l? state. read the data in the transmit buffer during the following timing. the read address of the transmit buffer during the following timing. the read address of the tran smit buffer is ?10xxxxxxb? in which the lower 6 bits are ignored. further, fr0b will be maintained in the ?l? st ate until all the data bytes in the transmit buffer are read out. fig. 21 transmit buffer control timing the control timing of the receive buffer (r x buffer) in the frame mode is shown in fig. 22. a write request is made to the mpu by taking fr1b from the ?h? state to the ?l ? state indicating that the r eceive buffer for storing the speech compression data of the receive si de (the speech decompression side) has become empty. write data into the receive buffer at the following tim ing. the write address of the receive buffer is ?01xxxxxxb? in which the lower 6 bits are ignored. further, fr1b will be mainta ined in the ?l? state until the receive buffer is written to become full. fig. 22 receive buffer control timing a7-a0 d15-d0 csb wrb rdb address data 0 address fr0b data n-1 address = 10xxxxxxb (fixed) number of data = n words (transmit buffer full) (transmit buffer empty) a7-a0 d15-d0 csb wrb rdb address data 0 address fr1b data n-1 address = 01xxxxxxb (fixed) number of data = n words (receive buffer empty) (receive buffer full)
fedl7074-003-01 ML7074-003 36/93 b. in the dma mode (cr11-b7 = ?1?) the control timing of the transmit buffer in the dma mode is shown in fig. 23. a dma request is made to the mpu by taking dmarq0b from the ?h? state to the ?l ? state when the transmit buffer storing the compressed speech data of the transmit side (the speech compressing side) becomes full. after the dma request is made, an acknowledgement is input by changing the acknowledgement signal dmaack0b to ?0? fr om ?1?, and also, this dmarq0b will be cleared automatically (?l? ? ?h?) when a falling edge of th e read enable si gnal is accepted (rdb = ?1? ? ?0?). read the data in the transmit buffer at the following timing simultaneously with the acknowledgement input. dmarq0b repeats the dma request until all the data in the transmit buffer has been read out. fig. 23 transmit buffer control timing in the dma mode the control timing of the receive buffer during the dma transfer mode is shown in fig. 24. a dma transfer request is made to the mpu by taking dmarq1b from the ?h? state to the ?l? state when the receive buffer for storing the speech compression data of the receive side (the speech decompression side) has become empty. after the dma transfer request is made, an acknowledgem ent is input by changing the acknowledgement signal dmaack1b from ?1? to ?0?, and al so, this acknowledgement signal dmaack1b will be cleared automatically (?l? ? ?h?) when a falling edge of the read enable signal is accepted (rdb = ?1? ? ?0?). write data into the receive buffer at the following timi ng simultaneously with the acknowledge ment input. dmarq1b repeats the dma transfer request until data has been writte n into the receive buffer to make it full. fig. 24 receive buffer control timing in the dma mode a7-a0 d15-d0 address data 0 address dmarq0b data n-1 address = 10xxxxxb (fixed) number of data = n words (transmit buffer full) (transmit buffer empty) dmaack0b wrb rdb a7-a0 d15-d0 wrb rdb address data 0 address dmarq1b data n-1 address = 01xxxxxxb (fixed) number of data = n words (receive buffer empty) (receive buffer full) dmaack1b
fedl7074-003-01 ML7074-003 37/93 control registers table 4 shows a map of the control registers. cr6 to cr9 are used for accessing the data memory inside the dsp. in addition, the changeable mode of operation is show n below the name of the register assigned to each bit. table 4 map of control registers address contents reg name a7 to a0 b7 b6 b5 b4 b3 b2 b1 b0 r/w spdn # afe_en # # # long/ short ope _stat cr0 00h /e ? i/ ? ? ? i/ i/ r/w xdmwr xdmrd # # # # # # cr1 01h i/e i/e ? ? ? ? ? ? r/w sc_en fgen _en # tdet1 _en tdet0 _en dtmf _en ec_en # cr2 02h i/e i/e ? i/e i/e i/e i/e ? r/w dsp _err fgen _rq # tone1 _det tone0 _det # tx _err rx _err cr3 03h ? ? ? ? ? ? ? ? r/ int dp_det # dtmf _det dtmf_ code3 dtmf_ code2 dtmf_ code1 dtmf_ code0 cr4 04h ? ? ? ? ? ? ? ? r/ ready # # # # # # # cr5 05h ? ? ? ? ? ? ? ? r/ internal data memory access (higher address) a15 a14 a13 a12 a11 a10 a9 a8 cr6 06h i/e /w internal data memory access (lower address) a7 a6 a5 a4 a3 a2 a1 a0 cr7 07h i/e /w internal data memory access (higher data)) d15 d14 d13 d12 d11 d10 d9 d8 cr8 08h i/e r/w internal data memory access (lower data)) d7 d6 d5 d4 d3 d2 d1 d0 cr9 09h i/e r/w # dpdet _en # tdet1 _sel tdet0 _sel vfro1 _sel vfro0 _sel ain _sel cr10 0ah ? i/e ? i/ i/ i/e i/e i/e r/w frame/ dma 10ms /20ms 16b /8b # # sc _sel1 sc _sel0 trans _en cr11 0bh i/ i/ i/ ? ? i/e i/e i/ r/w
fedl7074-003-01 ML7074-003 38/93 # # # # # psc _sel1 psc _sel0 pcmif _en cr12 0ch ? ? ? ? ? i/e i/e i/ /w cr13 0dh $ $ $ $ $ $ $ $ / cr14 0eh $ $ $ $ $ $ $ $ / ta ta ta $ $ $ $ $ cr15 0fh i i i ? ? ? ? ? r/w # # # # # # gpi1 gpi0 cr16 10h ? ? ? ? ? ? ? ? r/ # # # # # # gpo1 gpo0 cr17 11h ? ? ? ? ? ? i/e i/e r/w fsk _d7 fsk _d6 fsk _d5 fsk _d4 fsk _d3 fsk _d2 fsk _d1 fsk _d0 cr18 12h i/e r/w # # # # # # fsk _d9 fsk _d8 cr19 13h ? i/e r/w tgen _rx tgen _tx tgen _cnt5 tgen _cnt4 tgen _cnt3 tgen _cnt2 tgen _cnt1 tgen _cnt0 cr20 14h i/e r/w ? 15h-3fh $ $ $ $ $ $ $ $ / notes: register names #: reserved bit. do not change the initial value of ?0?. $: access-prohibited bit. do not read or write this bit. changeable operating mode: i/e: can be changed in either the initialization mode or the operating mode. i/: can be changed only in the initialization mode. /e: can be changed only in the operating mode. r/w r/w: both read and write are possible. /w: write only r/: read only /: access prohibited notice: since the reading is made in synchronization with the s ync signal (8 khz) when the following control registers are set in the operating mode, maintain the condition for 250 ? s or more. cr1, cr2, cr10, cr11, cr12, cr20 see the method of accessing and contro lling the internal data memory for the method of setting the following control registers. cr6, cr7, cr8, cr9
fedl7074-003-01 ML7074-003 39/93 (1) cr0 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr0 spdn # afe _en # # # long/ short ope _stat mode in which the setting can be changed /e ? i/ ? ? ? i/ i/ initial value 0 0 0 0 1* 0 0 0 r/w b7: software power down reset control 0: normal operation mode 1: power down reset the power down reset state can be initiated by setting this bit to ?1? for 200 nsec or longer. during the power down reset, all the contents of the control register s and of the internal data memory will be cleared automatically. the power down reset state is released by setting this bit to ?1? first and then resetting it to ?0?. b6: reserved bit. do not change the initial value. b5: analog front-end power down control 0: normal operation mode 1: power down state (excluding avref) when using the g.729.a (8 kbps) ? g.726 (32 kbps) mutual conversion mode or the pcm i/f mode, it is recommended to set this bit to ?1? since the analog front-end function is not used in these modes. in addition, when setting this bit to ?1?, simultaneously set the vfro0 and vfro1 outputs to the avref side (cr10-b2, b1 = ?0?). b4-2: reserved bits. do not change the initial values. b1: sync frame control 0: long frame synchronization signal 1: short frame synchronization signal b0: operation start control 0: operation hold 1: operation start the initialization mode is entered after releasing the power down reset state. in the initialization mode, it becomes possible to modify the contents of the control registers and the in ternal data memory. read out the ready bit (cr5-b7) repeatedly and start modifying the co ntents of the control registers and the internal data memory after detecting a ?1? in this bit. when this bit is set to ?1? after completing the writing of data in the control registers and the internal data memory, the lsi goes into the ready state (cr5-b7 = ?0?) and the normal operation mode is initiated. carry out modifications of the control registers and the internal data memory after changing to the normal operation mode. the method of changing the contents of the internal data memory is described later. the flowchart of the initialization mode is shown in fig. 25. note: * although the initial value of this bit is ?0?, it will be set to ?1? automatically before starting the initialization mode. further, a ?0? will be set in this bit automatically after the initialization mode if trans_en (cr11-b0) and pcmif_en (cr12-b0) are ?1?. when setting this register, make sure that the above value is not changed.
fedl7074-003-01 ML7074-003 40/93 fig. 25 initialization mode flowchart initialization mode pdnb = 0 or spdn = 1 pdnb = 1 & spdn = 0 ope_stat(cr0-b0) = 1 default storage memory change normal operation start initialization mode power down state released ready(cr5-b7) = 1 ready(cr5-b7) = 0 power down state wait of about 1.0 s internal lsi initialization external setting internal lsi automatic processing normal operation mode control register setting control register access and internal data memory access prohibited segment cr15 = 40h
fedl7074-003-01 ML7074-003 41/93 (2) cr1 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr1 xdmwr xdmrd # # # # # # mode in which the setting can be changed i/e i/e ? ? ? ? ? ? initial value 0 0 0 0 0 0 0 0 r/w b7: internal data memory write control 0: write stopped 1: write the data set in cr8 and cr9 (d15 to d0) is written into the internal data memory at the address set in cr6 and cr7 (a15 to a0). when this writing is completed, th is bit is automatically cleared to ?0?. when writing data successively, make the settings after confirming that this bit is ?0?. for details of the method of controlling the internal memory, see the section on the method of accessing and controlling the internal data memory later in this booklet. b6: internal data memory read control 0: read stopped 1: read the data in the internal data memory at the address set in cr6 and cr7 (a15 to a0) can be read out from cr8 and cr9 (d15 to d0). when this reading is completed, this bit is cleared to ?0? automatically. when reading out data successively, read the data after confirming that this bit has become ?0?. for details of the method of controlling the internal memory, see the section on the method of accessing and controlling the internal data memory later in this booklet. notice: it is not possible to carry out simultaneously the above internal memory read and write controls. the setting of cr1-b7 and cr1-b6 = ?11? is prohibited and should never be made. b5 to b0: reserved bits. prohibited to change the initial settings.
fedl7074-003-01 ML7074-003 42/93 (3) cr2 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr2 sc_en fgen _en # tdet1 _en tdet0 _en dtmf _en ec_en # mode in which the setting can be changed i/e i/e ? i/e i/e i/e i/e ? initial value 0 0 0 0 0 0 0 0 r/w b7: speech codec control register 0: speech codec stopped the encoder stops and the storing of data in the transmit buffer is stopped. the decoder stops and no-tone data is output continuously. it is possible to change th e speech data compression coding method when the speech codec has stopped. 1: speech codec operated the speech codec starts operating when this bit is set to ?1?. the speech codec starts after carrying out its own initialization. b6: fsk_gen control register 0: fsk_gen stopped 1: fsk_gen operated the operation is started by setting this bit to ?1?. set this bit to ?1? after storing the transmit data in cr18 and cr19. to stop the fsk data transmission, if this bit is reset to ?0? during the period when fgen_rq (cr3-b5) is ?1?, the fsk_gen stops after transmitting the final data. b5: reserved bit. prohibited to change the initial setting. b4: tone_det1 detector control register 0: tone_det1 stopped 1: tone_det1 operated the operation is started by setting this bit to ?1?. a ?1? is set to tone_det1 (cr3-b4) during the period when a 2100 hz* tone is being detected. b3: tone_det0 detector control register 0: tone_det1 stopped 1: tone_det1 operation the operation is started by setting this bit to ?1?. a ?1? is set to tone_det0 (cr3-b3) during the period when a 1650 hz* tone is being detected. remarks: * it is possible to change the detect frequencies. contact rohm's responsible sales person if you wish to change these frequencies. b2: dtmf detector control register 0: dtmf detect function stopped 1: dtmf detect function operated b1: echo canceller control register 0: echo canceller function stopped (the echo canceller is put in the through mode) 1: echo canceller function active remarks: the operation is started after the echo canceller internal coefficients cleared. b0: reserved bit. prohibited to change the initial setting.
fedl7074-003-01 ML7074-003 43/93 (4) cr3 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr3 dsp _err fgen _rq # tone1 _det tone0 _det # tx _err rx _err mode in which the setting can be changed ? ? ? ? ? ? ? ? initial value 0 0 0 0 0 0 0 0 r/ b7: dsp status register 0: normal operation state 1: abnormal operation state this lsi has a built-in watchdog timer, and when the program of the dsp section goes into uncontrollable execution state due to external distur bances around this lsi or due to pow er supply abnormalities, etc., the dsp_err status will be set to ?1? and an interrupt will be generated. when this bit becomes ?1?, carry out a power down reset using either pdnb or spdn of cr0-b7. this bit gets cleared by a power down reset operation. notice: the dsp_err status cannot detect all abnormal operation conditions. the abnormality will not be detected even when the dsp goes into uncontrolled program execution if the watchdog timer gets cleared during that program execution. b6: fsk generator transmit data request status register 0: no request present 1: request present when fgen_en (cr2-b6) is in the ?1? state, this bit is set to ?1? after the dsp takes in the fsk transmit data thereby requesting for the next fsk transmit data. b5: reserved bit. prohibited to change the initial setting. b4: tone1 detector detect status register 0: not detected 1: detected b3: tone0 detector detect status register 0: not detected 1: detected b2: reserved bit. prohibited to change the initial setting. b1: transmit buffer status register 0: transmit buffer in normal operation state 1: transmit buffer in error state this bit becomes ?1? when an overrun error occurs in the transmit buffer, and will be ?0? otherwise. b0: receive buffer status register 0: receive buffer in normal operation state 1: receive buffer in error state this bit becomes ?1? when an underflow error occurs in the receive buffer, and will be ?0? otherwise. an interrupt is generated whenever there is a change in the state of any of the above bits (?0? ? ?1? or ?1? ? ?0?).
fedl7074-003-01 ML7074-003 44/93 (5) cr4 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr4 int dp_det # dtmf _det dtmf_ code3 dtmf_ code2 dtmf_ code1 dtmf_ code0 mode in which the setting can be changed ? ? ? ? ? ? ? ? initial value 0 0 0 0 0 0 0 0 r/ b7: interrupt generation status register this is a directly coupled register with the logic of in tb inverted. a ?1? will be read out from this bit when intb is ?l? and will be ?0? otherwise. 0: during the period intb is ?h? 1: during the period intb is ?l? notice: the statuses of the int bit and intb may not be the same when a dsp_err is generated. b6: dial pulse detector detect status register this bit indicates the detect status of the dial pulse detector. this bit becomes ?1? during the period when a dial pulse is being detected and will be ?0? otherwise. 0: dial pulse not detected 1: dial pulse detected b5: reserved bit. prohibited to change the initial value.
fedl7074-003-01 ML7074-003 45/93 b4: dtmf detector detect status register this bit indicates the detect status of the dtmf detector. this bit becomes ?1? during the period when a dtmf signal is being detected and will be ?0? otherwise. 0: no dtmf signal detected 1: dtmf signal detected b3 to b0: dtmf code indication registers when dtmf_en (cr2-b2) has been set to ?1?, a valid dtmf code is stored in these bits during the period a dtmf signal is being detected (cr4-b4 dtmf_det = ?1?). these bits output the data ?0000? when no dtmf signal is detected (dtmf_det = ?0 ?). the codes are listed in table 5. table 5 dtmf detect code table dtmf_3 dtmf_2 dtmf_1 dtmf_0 low frequency [hz] high frequency [hz] dial number 0 0 0 0 697 1209 1 0 0 0 1 770 1209 4 0 0 1 0 852 1209 7 0 0 1 1 941 1209 * 0 1 0 0 697 1336 2 0 1 0 1 770 1336 5 0 1 1 0 852 1336 8 0 1 1 1 941 1336 0 1 0 0 0 697 1477 3 1 0 0 1 770 1477 6 1 0 1 0 852 1477 9 1 0 1 1 941 1477 # 1 1 0 0 697 1633 a 1 1 0 1 770 1633 b 1 1 1 0 852 1633 c 1 1 1 1 941 1633 d an interrupt is generated whenever there is a change in the statuses of the bits b6, b4 to b0 above (?0? ? ?1? or ?1? ? ?0?).
fedl7074-003-01 ML7074-003 46/93 (6) cr5 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr5 ready # # # # # # # mode in which the setting can be changed. ? ? ? ? ? ? ? ? initial value 0 0 0 0 0 0 0 0 r/ b7: initialization mode indication register 0: other than the initialization mode 1: initialization in progress after the power down reset state is released, this lsi en ters the initialization mode. this bit will be set to ?1? in the initialization mode. b6 to b0: reserved bits. prohibited to change the initial settings.
fedl7074-003-01 ML7074-003 47/93 (7) cr6 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr6 a15 a14 a13 a12 a11 a10 a9 a8 mode in which the value can be changed i/e initial value 0 0 0 0 0 0 0 0 /w b7 to b0: higher order address of the internal data memory these bits are the registers for setting the higher order byte of the address in the internal data memory. for details on the method of writing, see the section on the method of accessing and controlling the internal data memory (8) cr7 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr7 a7 a6 a5 a4 a3 a2 a1 a0 mode in which the value can be changed i/e initial value 0 0 0 0 0 0 0 0 /w b7 to b0: lower order address of the internal data memory these bits are the registers for setting the lower order by te of the address in the internal data memory. for details on the method of writing, see the section on the method of accessing and controlling the internal data memory. (9) cr8 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr8 d15 d14 d13 d12 d11 d10 d9 d8 mode in which the value can be changed i/e initial value 0 0 0 0 0 0 0 0 r/w b7 to b0: higher order data of the internal data memory these bits are the registers for setting the higher order byte of the data in the internal data memory. for details on the method of writing and reading, see th e section on the method of accessing and controlling the internal data memory. (10) cr9 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr9 d7 d6 d5 d4 d3 d2 d1 d0 mode in which the value can be changed i/e initial value 0 0 0 0 0 0 0 0 r/w b7 to b0: lower order data of the internal data memory these bits are the registers for setting the lower order by te of the data in the internal memory. for details on the method of writing and reading, see the s ection on the method of accessing and controlling the internal data memory.
fedl7074-003-01 ML7074-003 48/93 (11) cr10 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr10 # dpdet_ en # tdet1_ sel tdet0_ sel vfro1 _sel vfro0 _sel ain _sel mode in which the value can be changed ? i/e ? i/ i/ i/e i/e i/e initial value 0 0 0 0 0 0 0 0 r/w b7: reserved bit. prohibited to change the initial setting. b6: dial pulse detector control register 0: dial pulse detector stopped 1: dial pulse detector active b5: reserved bit. prohibited to change the initial setting. b4: tdet1 detect path select register 0: transmitting section 1: receiving section b3: tdet0 detect path select register 0: transmitting section 1: receiving section b2: vfro1 selection 0: avref (output of about 1.4 v) 1: receiver side speech output b1: vfro0 selection 0: avref (output of about 1.4 v) 1: receiver side speech output b0: input amplifier selection 0: selection of amp0 1: selection of amp1
fedl7074-003-01 ML7074-003 49/93 (12) cr11 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr11 frame/ dma 10ms /20ms 16b /8b # # sc _sel1 sc _sel0 trans _en mode in which the value can be changed i/ i/ i/ ? ? i/e i/e i/ initial value 0 0 0 0 0 0 0 0 r/w b7: frame/dma select register 0: frame access 1: dma slave interface access this bit selects the method of accessi ng the transmit and receive buffers. the initial value is frame access. b6: 10 ms/20 ms select register 0: 10 ms 1: 20 ms this bit selects the buffering time of the transmit and receive buffer s. the initial value is 10 ms. b5: mcu interface data width select register 0: 16-bit data width interface 1: 8-bit data width interface this bit selects the width of the data bus connected to the transmit and receive buffers. the initial value is 16 bits. when the 8-bit bus width is used, tie d15 to d8 to either ?1? or ?0?. b4, b3: reserved bits. prohibited to change the initial values. b2, b1: speech codec select registers - when using the analog i/f mode, (0, 0): g.729.a (0, 1): g.711 ( ? -law) (1, 0): g.726 (32 kbps) (1, 1): g.711 (a-law) the speech codec can be selected wh en cr2-b7 (sc_en) is in the ?0? st ate. prohibited to change the speech codec when it is operating. - when using the pcm i/f mode (cr12-b0 = ?1?), these bits select the pcm i/f coding method. further, the speech codec select bits will be cr12-b2 and cr12-b1. (0, 0): 16-bit linear (2?s complement format) (0, 1): g.711 ( ? -law) (1, 0): prohibited (1, 1): g.711 (a-law) the coding method can be selected wh en cr2-b7 (sc_en) is in the ?0? state. prohibited to change the coding method during operation. b0: g.726 ? g.729.a mutual conversion control this bit controls the g.726 (32 kbps) ? g.729.a (8 kbps) mutual conversion mode. 0: mutual conversion stopped 1: mutual conversion active when this bit is set to ?1?, the pcm i/f is used and the operation becomes a g.726 ? g.729.a mutual conversion operation. when using this function, the operation is started after setting the coding method in b2 and b1 to ?10? and making cr2-b7 (sc_en) ?1?.
fedl7074-003-01 ML7074-003 50/93 (13) cr12 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr12 # # # # # psc _sel1 psc _sel0 pcmif _en mode in which the value can be changed ? ? ? ? ? i/e i/e i/ initial value 0 0 0 0 0 0 0 0 /w b7 to b3: reserved bits. prohibited to change the initial settings. b2, b1: speech codec select registers in the pcm i/f mode (0, 0): g.729.a (0, 1): g.711 ( ? -law) (1, 0): g.726 (32 kbps) (1, 1): g.711 (a-law) the speech codec type can be select ed when cr2-b7 (sc_en) is in the ?0? state. prohibited to change the speech codec type during operation. b0: pcm i/f mode control register 0: analog i/f mode set the speech codec type selection in cr11-b2 and cr11-b1. 1: pcm i/f mode set the pcm/if coding method in cr11-b2 and cr11-b1, and set the speech codec type selection in b2 and b1 of this register. (14) cr13 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr13 $ $ $ $ $ $ $ $ mode in which the value can be changed ? ? ? ? ? ? ? ? initial value 0 0 0 0 0 0 0 0 / b7 to b0: reserved bits. prohibited to change the initial settings. (15) cr14 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr14 $ $ $ $ $ $ $ $ mode in which the value can be changed ? ? ? ? ? ? ? ? initial value 0 0 0 0 0 0 0 0 / b7 to b0: reserved bits. prohibited to change the initial settings.
fedl7074-003-01 ML7074-003 51/93 (16) cr15 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr15 ta ta ta $ $ $ $ $ mode in which the value can be changed i i i ? ? ? ? ? initial value 0 0 0 0 0 0 0 0 r/w b7 to b5: registers for adjustment set to ?010? at the beginning of the initialization mode. (0, 1, 0): fixed b4 to b0: reserved bits. prohibited to change the initial settings. (17) cr16 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr16 # # # # # # gpi1 gpi0 mode in which the value can be changed ? ? ? ? ? ? ? ? initial value 0 0 0 0 0 0 ? ? r/ b7 to b2: reserved bits. prohibited to change the initial settings. b1: gpi1 level read out register 0: gpi1 level is ?0?. 1: gpi1 level is ?1?. b0: gpi0 level read out register 0: gpi0 level is ?0?. 1: gpi0 level is ?1?. note: gpi0 is used as the input of the dial pulse detector in the secondary functions. it is possible to read out gpi0 even when the dial pulse detector is operating.
fedl7074-003-01 ML7074-003 52/93 (18) cr17 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr17 # # # # # # gpo1 gpo0 mode in which the value can be changed ? ? ? ? ? ? i/e i/e initial value 0 0 0 0 0 0 0 0 r/w b7 to b2: reserved bits. prohibited to change the initial settings. b1: gpo1 output level register 0: ?l? level is output at gpo1. 1: ?h? level is output at gpo1. b0: gpo0 output level register 0: ?l? level is output at gpo0. 1: ?h? level is output at gpo0. notice: gpo0 is used in the secondary functions as the output of the dial pulse transmitter. note that it is prohibited to change the content of the gpo0 bit when the dial pulse detector is operating. (19) cr18 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr18 fsk _d7 fsk _d6 fsk _d5 fsk _d4 fsk _d3 fsk _d2 fsk _d1 fsk _d0 mode in which the value can be changed i/e initial value 0 0 0 0 0 0 0 0 r/w b7 to b0: fsk transmit data setting registers (20) cr19 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr19 # # # # # # fsk _d9 fsk _d8 mode in which the value can be changed ? i/e initial value 0 0 0 0 0 0 0 0 r/w b7 to b2: reserved bits. prohibited to change the initial settings. b1, b0: fsk transmit data setting registers.
fedl7074-003-01 ML7074-003 53/93 (21) cr20 b7 b6 b5 b4 b3 b2 b1 b0 r/w cr20 tgen _rx tgen _tx tgen _cnt5 tgen _cnt4 tgen _cnt3 tgen _cnt2 tgen _cnt1 tgen _cnt0 mode in which the value can be changed i/e initial value 0 0 0 0 0 0 0 0 r/w b7: tone rx section output control register 0: output stopped. 1: tone output at the rx section b6: tone tx section output control register 0: output stopped. 1: tone output at the tx section b5: register for controlling addition or multiplication of tone a/b 0: addition (the tone a and tone b outputs are added.) 1: multiplication (the tone a and tone b outputs are multiplied.) b4: tone a/b output control register 0: onetime tone output the signal is output for a duration equal to the sum of tim_m0 and tim_m1 and then stopped. after stopping, cr20 will be cleared automatically within the lsi. 1: repetitive tone output the signal is output repeatedly as controlled by the time duration equal to the sum of tim_m0 and tim_m1. write 00h in this register cr20 in order to stop the signal output. notice: it is prohibited to write any value in this register other than 00h when repetitive output is being made. in the case of onetime tone output operation, make the next setting only after making sure that the content of this register has become 00h. when tone output is intended to resume after repetitive tone output is once ceased, the register setting must be made only after fade-out time plus 250 ? s. b3, b2: tone a output control registers 00: no tone is output. 01: the tone is stopped during the m0 period and is output during the m1 period. 10: the tone is output during the m0 period and stopped during the m1 period. 11: the tone is output during both the m0 and m1 periods. b1, b0: tone b output control registers 00: no tone is output. 01: the tone is stopped during the m0 period and is output during the m1 period. 10: the tone is output during the m0 period and is stopped during the m1 period. 11: the tone is output during both the m0 and m1 periods. note: although it is possible to output tone a and tone b alternately when the output controls of tone a and tone b are set in a mutually exclusive manner and their outputs are summed, the waveform after addition will be discontinuous since the phases of the two signals will be independent of each other. the tone generator section block diagram is shown in fig. 26, the tone output control method is shown in fig. 27, and the tone output control parameters are shown in fig. 28.
fedl7074-003-01 ML7074-003 54/93 tgen_freq_a tone_a tgen_gain_a tgen_gain_b tgen_txgain_ total cr20-b5 tgen_freq_b tone_b tgen_rxgain_ total tx rx fig. 26 tone generator section block diagram tone a, b frequency setting m0/m1output duration setting (common to tone a and tone b) tone a/b/total gain setting cr20=xxx0xxxxb cr20 is cleared automatically within the lsi cr20=00000000b onetime tone output method tone a, b frequency setting m0/m1 output duration setting (common to tone a and tone b) tone a/b/total gain setting cr20=xxx1xxxxb set cr20=00000000b repetitive tone output method tone output stops repetitive output of tone stopping after onetime tone output tone a/b m0/m1 output control setting tone a/b m0/m1 output control setting fade-in step setting (common to tone a and tone b) fade-out step setting (common to tone a and tone b) fade-out time setting (common to tone a and tone b) fade-in step setting (common to tone a and tone b) fade-out step setting (common to tone a and tone b) fade-out time setting (common to tone a and tone b) "1" "0" "1" "0" * w hen tone output is intended to resume after repetitive tone output is once ceased, the register setting must be made only after fade-out time plus 250 ? s. fig. 27 tone output control method
fedl7074-003-01 ML7074-003 55/93 tim-m0 tim-m1 freq gain m0 on m1 on onetim tone output repetitive tone output output is made by repeating onetime tone output settings ??????????? gain tim-m0 tim-m1 freq m0 off m1 on tim-m0 tim-m1 m0 off m1 on tim-m0 tim-m1 freq m0 on m1 off tim-m0 tim-m1 freq m0 off m1 on fig. 28 tone output control parameters
fedl7074-003-01 ML7074-003 56/93 fig. 29 tone output control parameters (in a case with tgen_fade_cont ?on?) tim_m0 tim_m1 gain m0 on m1 on onetime tone output repetitive tone output ??????? gain m0 off m1 on m0 off m1 on m0 on m1 off m0 off m1 on outputs a set of onetime tone output repetitively (tone_a and tone_b are output alternately.) ??????? gain_ a m0 on m1 on m0 on m1 on tone_a tone_b tone_a tone_b gain_ b tim_m0 tim_m1 tim_m0 tim_m1 f-i f-o f-i f-o f-i f-o f-i f-o f-i f-o f-i f-o f-i f-o f-i f-o f-i f-o * "f-i" and "f-o" are tim es to fade in and to fade out respectively. param eters to determ ine them will be discussed later in this docum ent.. outputs a set of onetime tone output repetitively (cr20="00h" is set in a way) ??????? gain m0 off m1 on m0 off m1 on f-i f-o f-i f-o outputs a set of onetime tone output repetitively cr20="00h "
fedl7074-003-01 ML7074-003 57/93 method of accessing and controlling internal data memory writing method the four 8-bit registers cr6 to cr9 mapped within the se t of control registers are allocated to the following: 16-bit address of the internal data memory (a15 to a0) 16-bit data to be written (d15 to d0) the initialization mode is entered and a ?1? is set in cr5-b7 (ready) about 1.0 s after release from a power down reset due to pdnb or after a release from a software power down reset due to cr0-b7. in this writable state, after setting in cr6 to cr9 the inte rnal data memory address and the data to be written, if a ?1? is set in cr1-b7 (xdmwr), the writing of one word of data in the internal data memory will be completed. after completion of writing the data, cr 1-b7 will be cleared to ?0? automatic ally. the method of setting data in the internal data memory is shown in fig. 30. repeat the above operations for writing to several memory locations. when all the writing operations have been completed, the normal operations can be started by setting a ?1? in cr0-b0 (ope_stat). it is possible to re-write even in modes other than the in itialization mode the internal data memory locations related to gain control, tone transmission, ec, dpgen, and timer. even in such cases, carry out the updating of the internal data memory using the same method as described above. table 6 and table 7 list the internal data memory and related control registers. note: when data is set in the internal data memory during opera tion, since the reading is done in synchronization with the sync signal (8 khz), maintain the state for 250 ? s or more. fig. 30 method of setting data in the internal data memory cr8 (internal memory higher data) yes no cr1-b7, b6 = 0 updating internal memory cr1-b7 cleared automatically external setting automatic processing inside the lsi cr9 (internal memory lower data) cr7 (internal memory lower address) cr6 (internal memory higher address) cr1-b7(xdmwr) = 1 time duration from setting of cr1-b7 until it is cleared. in initialization mode: 20 ? sec max. in normal operation: 250 ? sec max. start writing
fedl7074-003-01 ML7074-003 58/93 reading method after setting the internal data memory address in cr6 and cr7 , one word of data from the internal data memory is stored in cr8 and cr9 when a ?1? is written in cr1-b 6 (xdmrd). after reading the data, cr1-b6 will be cleared to ?0? automatically. the method of reading the internal data memory is shown in fig. 31. further, the internal data memory read out can only be made for the internal data memory and the read only data memory within the related registers listed in table 6 and table 7. notice: when the internal data memory is read out during operati on, since the reading out is done in synchronization with the sync signal (8 khz), maintain the set address in the same state for 250 ? s or more. fig. 31 method of reading out internal data memory cr1-b6(xdmrd) = 1 yes no cr1-b6(xdmrd) = 0 external setting and read out cr8 (internal memory higher data) read out cr7 (internal memory lower address) cr6 (internal memory higher address) time duration from setting of cr1-b7 until it is cleared: in initialization mode: 20 ? sec max. in normal operation: 250 ? sec max. start read out cr9 (internal memory lower data) read out cleared automatically to "0" after the read out data is stored in cr8 and cr9. yes no cr1-b7, b6 = 0
fedl7074-003-01 ML7074-003 59/93 table 6 internal data memory and related control registers (1/3) initial value modes in which updating and read are possible function name internal data memory name address data data value in initializa- tion mode during idle state during operatio n transmit gain (txgain) 00ech 0080h 0 db y y y receive gain (rxgain) 00edh 0080h 0 db y y y side tone gain (stgain) 00eeh 0000h mute y y y gain fade control (gain_fade_cont) 00efh 0000h disabled y y n gain fade-in step (gain_fade_in_st) 00f0h 4c10h +1.5db y y *1 n gain control gain fade-out step (gain_fade_out_st) 00f1h 35d9h -1.5db y y *1 n tone transmit control cr20 00h transmission stopped y y y in-execution flag (tgen_exe_flag) (read-only memory) 00c3h 0000h not in execution y y y tone a frequency control (tgen_freq_a) 00c8h 0ccch 400 hz y y n tone b frequency control (tgen_ freq_b) 00cah 007ah 15 hz y y n tone a gain control (tgen_gain_a) 00cch 0080h ?13.3 dbm0 y y y tone b gain control (tgen_gain_b) 00cdh 0080h ?13.3 dbm0 y y y tone time control 0 (tgen_tim_m0) 00ceh 0fa0h 500 ms y y n tone time control 1 (tgen_tim_m1) 00d1h 0fa0h 500 ms y y n rx section transmit gain (tgen_rxgain_total) 00d2h 0080h 0 db y y y tx section transmit gain (tgen_txgain_total) 00d3h 0080h 0 db y y y tone fade control (tgen_fade_cont) 00d4h 0000h disabled y y n tone fade-in step (tgen_fade_in_st) 00d5h 47cfh +1db y y n tone fade-out step (tgen_fade_out_st) 00d6h 390ah -1db y y n tone fade-out time (tone_fade_out_tim) 00d7h 002bh 43 sync y y n tone total gain fade control (tgen_gain_total_fade_cont) 00c4h 0000h disabled y y n tone total gain fade-in step (tgen_gain_total_fade_in_st) 00c5h 4c10h +1.5db y y n tone genera- tion tone_ gen tone total gain fade-out step (tgen_gain_total_fade_out_st) 00c6h 35d9h -1.5db y y n *1 when gain fade is disabled
fedl7074-003-01 ML7074-003 60/93 table 7 internal data memory and related control registers (2/3) initial value modes in which updating and read are possible function name internal data memory name address data data value in initializa- tion mode during idle state during operatio n fsk output control cr2-b6 0b stopped y y y fsk transmit data 0 cr18 00h 00h y y y fsk transmit data 1 cr19-b1 ,b0 00b 00b y y y fsk generat- or fsk_ gen fsk gain control (fgen_gain) 00e4h 0080h ?13.3 dbm0 y y n tone 0 control cr2-b3 0b stopped y y y detect level control (tdet0_th) 0040h 1ebbh ?5.3 dbm0 y y n on guard timer control (tdet0_on_tm) 0041h 0028h 5 ms y y n off guard timer control(tdet0_off_tm) 0042h 0028h 5 ms y y n tone 0 detector tone_ det0 detect frequency (tdet0_freq) - - - - h - 1650 hz y n n tone 1 control cr2-b4 0b stopped y y y detect level control (tdet1_th) 0052h 1ebbh ?5.3 dbm0 y y n detect on guard timer control(tdet1_on_tm) 0053h 0028h 5 ms y y n detect off guard timer control (tdet1_off_tm) 0054h 0028h 5 ms y y n tone 1 detector tone_ det1 detect frequency (tdet1_freq) - - - - h - 2100 hz y n n dtmf control cr2-b2 0b stopped y y y detect level (dtmf_th) 005ah 1000h ?37.0 dbm0 y y n detect on guard timer(dtmf _on_tm) 00bfh 00a0h 20 ms y y n dtmf detector dtmf_ rec detect off guard timer(dtmf _off_tm) 00c1h 00a0h 20 ms y y n ec control cr2-b1 0b stopped y y y ec control (ec_cr) 0171h 0012h hd att off y y y echo cancel- ler glpad control (glpad_cr) 0172h 000fh +6/?6 db y y n
fedl7074-003-01 ML7074-003 61/93 table 8 internal data memory and related control registers (3/3) initial value modes in which updating and read are possible function name internal data memory name address data data value in initializa- tion mode during idle state during operatio n on guard timer control (dpdet_on_tim) 011bh 0028h 5 ms y y n off guard timer control (dpdet_off_tim) 011ch 0028h 5 ms y y n polarity control (dpdet_pol) 122eh 0000h positive logic y y n end of detect timer control (dpdet_detoff_tim) 122fh 03e8h 125 ms y y n dial pulse detector dpdet detect code (dpdet_code) (read only data memory) 1231h 0000h not detected y y y output control (dpgen_en) (can be read out) 1220h 0000h stopped y y y output data (dpgen_data) 1221h 0000h stopped y y n pps control (dpgen_pps) 1222h 0000h 10 pps y y n high period setting (dpgen_duty) 1223h 0108h 33 ms y y n dial pulse generat- or dpgen end of output control (dpgen_off_tim) 1225h 03e8h 125 ms y y n timer control (tim_en) 1218h 0000h stopped y y y timer counter value display (tim_count) (read only data memory) 1219h 0000h count value y y y timer timer data setting (tim_data) 121ah ffffh max ffffh y y n outband control outband control (outband_control) 1307h 0000h disabled y n n outband g.729.a data outband g.729.a data (outband_g729_dat) 016ch 016dh 016eh 016fh 0170h 7852h 80a0h 00fah c200h 07d6h - y n n version lsi code display (ml7074_version) (read only data memory) 0152h 0000h ML7074-003 y y y note: initialization mode: the state after release from a power down reset, and in which the initial values of control registers and internal data memory can be altered. during idle state: the state in which the functi on given in the function name column has stopped. during operation: the state in which the function given in the function name column is operating.
fedl7074-003-01 ML7074-003 62/93 gain control (txgain, rxgain, stgain) it is possible to change the values of the transmit gain (txgain), receive gain (rxgain), and side tone gain (stgain). the positions of the respec tive gain controllers are the following. transmit gain (txgain): immediatel y before the speech codec input. receive gain (rxgain): immediatel y after the speech codec output. side tone gain (stgain): added to the input of the receiver section lpf fr om the output of the transmitter section bpf of the linear pcm codec. a. internal data memory for ad justing transmit gain (txgain) address: 00ech, initial value: 0080h (0.0 db) when changing the gain value, compute it using the following equation: equation: 0080h ? gain example: making the gain +6 db ( ? 2): 0080h ? 2 = 0100h upper limit : about 40 db higher (data: 3200h) : 0 db (data: 0080h) lower limit : about ?42 db (data: 0001h) : mute (data: 0000h) b. internal data memory for ad justing receive gain (rxgain) address: 00edh, initial value: 0080h (0.0 db) when changing the gain value, compute it using the following equation: equation: 0080h ? gain example: making the gain +6 db ( ? 2): 0080h ? 2 = 0100h upper limit : about 40 db higher (data: 3200h) : 0 db (data: 0080h) lower limit : about ?42 db (data: 0001h) : mute (data: 0000h) c. internal data memory for adjusting side tone gain (stgain) address: 00eeh, initial value: 0000h (mute) when changing the side tone gain value, compute it using the following equation: equation: 1000h ? gain example: making the gain ?20 db ( ? 0.1): 1000h ? 0.1 = 019ah upper limit : 0 db (data: 1000h) lower limit : about ?72 db (data: 0001h) : mute (data: 0000h)
fedl7074-003-01 ML7074-003 63/93 d. internal data memory for gain fade (gain_fade_cont) ?1? in b0 enables fade-in/-out in tx gain alternation; ?1? in b1 enables the function in rx gain alternation; and ?1? in b2 enables the function at muting in outband control. b7 b6 b5 b4 b3 b2 b1 b0 - - - - - outband _fade_ cont rx_fade _cont tx_fade _cont initial value 0 0 0 0 0 0 0 0 address : 00efh, initial value : 0000h (outband : disabled, rx : disabled, tx : disabled) b7, 6, 5, 4, 3 : reserved bits (prohibited to change the initial settings) b2 : outband_fade_cont 1 : on (fading-in/-out at muting and at un-muting) 0 : off b1 : rx_fade_cont 1 : on (fading-in/-out at rx gain alternation) 0 : off b0 : tx_fade_cont 1 : on (fading-in/-out at tx gain alternation) 0 : off e. internal data memory for gain fade-in step (gain_fade_in_st) address: 00f0h, initial value: 4c10h (+1.5db) when changing the step value, x, compute it using the following equation: equation: 10^(x/20)*16384 example: making the step value +3 db: 10^(3/20)*16384 = 23143d = 5a67h upper limit : about +6.0 db (data: 7fffh) lower limit : about +0.1 db (data: 40bdh) f. internal data memory forgain fade-out step (gain_fade_out_st) address: 00f1h, initial value: 35d9h (-1.5db) when changing the step value, x, compute it using the following equation: equation: 10^(x/20)*16384 example: making the step value -3 db: 10^(-3/20)*16384 = 11598d = 2d4eh upper limit : about -6.0 db (data: 2000h) lower limit : about -0.1 db (data: 3f44h) (note) step values for fade-in and fade-out can be determined independently; whereas the step values determined for fade-in and fade-out are common to tx gain, rx gain and outband_fade_cont.
fedl7074-003-01 ML7074-003 64/93 tone generator (tone_gen) it is possible to set the various types of parameters of the tone generator block. a. internal data memory for tone frequency control tone_a (tgen_freq_a) address: 00c8h initial value: 0ccch (400 hz) tone_b (tgen_freq_b) address: 00cah initial value: 007ah (15 hz) at the initial setting values a tone a of 400 hz and a tone b of 15 hz are output. use the following equation to compute the value of the setting when changing the frequency. equation: a ? 8.192 (a is the frequency to be set) example: to set a frequency of 2100 hz: 2100 ? 8.192 ? 4333h upper limit : 3 khz (data: 6000h) lower limit : 15 hz (data: 007ah) b. internal data memory for tone gain control tone_a (tgen_gain_a) address: 00cch initial value: 0080h tone_b (tgen_gain_b) address: 00cdh initial value: 0080h the output level with the initial setting will be ?13.3 dbm0. use the following equation to compute the value of the setting when changing the gain. equation: 0080h ? gain example: for reducing the gain by 6 db ( ? 0.5): 008dh ? 0.5 = 0040h upper limit : 12 db more (data: 01fdh) lower limit : ?12 db less (data: 0020h) notice: make sure that the maximum amplitude does not exceed 3.17 dbm0 when the tones are multiplied or added.
fedl7074-003-01 ML7074-003 65/93 c. internal data memory for tone output time control (tgen_tim_m0/tgen_tim_m1) tgen_tim_m0 (output time duration) address: 00ceh initial value: 0fa0h (500 ms) tgen_tim_m1 (output time duration) address: 00d1h initial value: 0fa0h (500 ms) compute the value using the following equation when changing the time durations: equation: t/0.125 (t is the time duration in ms) example: when setting a time duration of 200 ms: 200/0.125 = 1600d = 0640h upper limit : 4095.875 msec (data: 7fffh) lower limit : 0.125 msec (data: 0001h) notice: it is prohibited to set a time duration of 0000h (0 msec) and hence be sure never to make such a setting. the tone output times set here are commonly valid for tone_a and tone_b, and cannot be determined differently. d. internal data memory for tone total gain ad justment (tgen_rxgain_total, tgen_txgain_total) tgen_rxgain_total address: 00d2h initial value: 0080h tgen_txgain_total address: 00d3h initial value: 0080h the initial values will be 0 db. compute using the following equation when changing the output level. equation: 0080h ? gain example: decreasing the output level by 6 db: 0080h ? 0.5 = 0040h upper limit : 40 db higher (data: 3200h) lower limit : ?40 db lower (data: 0001h) : mute (data: 0000h) notice: the maximum amplitude should never exceed 1.3 vp-p. e. internal data memory for tone fade control (tgen_fade_cont) address: 00d4h initial value: 0000h (disabled) ?0000h? in this data memory enables fade-in/-out with tone gain control. 0000h: fade-in/-out disabled 0001h: fade-in/-out enabled notice: when this fade-in/-out function is enabled, be sure that a corresponding fade-out step value and fade-out time are also set correctly, otherwise a pop noise might be generated at a tail.
fedl7074-003-01 ML7074-003 66/93 f. internal data memory for fade-in step value (tgen_fade_in_st) address: 00d5h initial value: 47cfh (+1.0db) compute using the following equation wh en changing the step value, x. equation: 10^(x/20)*16384 example: sets a fade-in step to +3db: 10^(3/20)*16384 = 23143d = 5a67h upper limit : about +6.0db (data: 7fffh) lower limit : about +0.1db (data: 40bdh) notice: the value set here are commonly valid for tone_a and tone_b, and cannot be determined differently. g. internal data memory for fade-out step value (tgen_fade_out_st) address: 00d6h initial value: 390ah (-1.0db) compute using the following equation wh en changing the step value, x. equation: 10^(x/20)*16384 example: sets a fade-out step to -3db: 10^(-3/20)*16384 = 11598d = 2d4eh upper limit : about -6.0db (data: 2000h) lower limit : about -0.1db (data: 3f44h) notice: the value set here are commonly valid for tone_a and tone_b, and cannot be determined differently. h. internal data memory for fade-out time (tgen_fade_out_tim) address: 00d7h initial value: 002bh (43 sync) compute using the following equation when changing the fade-out time. equation: 43db/?fade-out step value?[db] example: in a case with a fade-out step value 2db: 43/2 = 21d = 15h upper limit : 422 sync (data: 01a6h) lower limit : 8 sync (data: 0008h) notice: ?0000h? is prohibited to set. set a fade-out time less than tim_m0 the value set here are commonly valid for tone_a and tone_b, and cannot be determined differently. i. internal data memory for total gain fade-out (tgen_gain_total_fade_cont) address: 00c4h initial value: 0000h (disabled) ?0000h? in this data memory enables a function of total gain fade-in/-out for tx and rx. 0000h: disabled 0001h: enabled notice: the control of this function is commonly valid for tx and rx, and cannot be determined differently.
fedl7074-003-01 ML7074-003 67/93 j. internal data memory for a fade-in step va lue of total gain (tgen_ gain_total_fade_in_st) address: 00c5h initial value: 4c10h (+1.5db) compute using the following equation wh en changing the step value, x. equation: 10^(x/20)*16384 example: sets a fade-in step to +3db: 10^(3/20)*16384 = 23143d = 5a67h upper limit : about +6.0db (data: 7fffh) lower limit : about +0.1db (data: 40bdh) notice: the value set here are commonly valid for tx and rx, and cannot be determined differently. k. internal data memory for a fade-out step value of total gain (tgen_gain_total_fade_out_st) address: 00d6h initial value: 35d9h (-1.5db) compute using the following equation wh en changing the step value, x. equation: 10^(x/20)*16384 example: sets a fade-out step to -3db: 10^(-3/20)*16384 = 11598d = 2d4eh upper limit : about -6.0db (data: 2000h) lower limit : about -0.1db (data: 3f44h) notice: the value set here are commonly valid for tx and rx, and cannot be determined differently. l. internal data memory for in-execution flag (tgen_exe_flag) this address becomes ?0001h? when a tone generator is under operation. address: 00c3h initial value: 0000h tone tgen state tgen_exe_flag tone cr20="00h" tgen state tgen_exe_flag tgen_fade_cont = off tgen_fade_cont = on cr20="00h"
fedl7074-003-01 ML7074-003 68/93 fsk generator (fsk_gen) the fsk generator (fsk_gen) frequency-modulates the data set in the control register and outputs at vfro0 and vfro1. the specifications of the fsk generator are listed in table 9 and its block diagram is shown in fig. 32. the fsk generator is made up of an fsk signal generator, register for setting data, and gain adjustment section. after the data to be transmitted is set in the contro l registers fsk_d0 (cr18) or fsk_d1 (cr19), the data transmission is started when a ?1? is set in fgen_en (cr2-b6). the buffer for data transmission consists of 10 bits and the data is output successively from the lsb side of fsk_d0 to the msb (b1) of fsk_d1. the data transmit sequence is shown in fig. 33. further, the output level can be changed using the internal data memory (fgen_gain). once the data transm ission is started, fgen_rq (cr3-b6) becomes ?1? automatically thereby requesting the mcu to set the next transmission data. when transmitting data successively, set the 10 bits of data to be transmitted next in fsk_d0 and fsk_d1 within the period when fgen_rq is ?1? (the period when data setting is valid). in order to end the transmission of data, set a ?0? in fgen_en within the period in which fgen_rq is ?1?. the fsk generator will then stop after outputting the 10 bits of data currently being transmitted within the setting valid period. the transmit and stop timings are shown in fig. 34 and an example of control is shown in fig. 35. table 9 specifications of fsk generator modulation method frequency modulation transfer speed 1200 bps 1300 hz (data ?1? mark) output frequencies 2100 hz (data ?0? space) buffer for data output 10 bits (cr18-b7 to cr18-b0, cr19-b1, cr19-b0) output level ?13.3 dbm0 (initial value, gain adjustment possible) fig. 32 fsk generator block diagram fig. 33 data transmit sequence fskgen fgen_gain cr2-b6(fsk_en) cr18 fsk_d0<7:0> cr19 fsk_d1<1:0> fsk_d0<7:0> fsk_d1<9:8> 1 2 3 4 5 6 7 0 1 0 transmit direction fsk_d0 fsk_d1
fedl7074-003-01 ML7074-003 69/93 fig. 34 fsk data transmit and stop timings (when transmitting 20 bits) note: when the fsk generator is operating, it is recommended to k eep the other detector sections deactive so that they do not cause to generate an interrupt. fgen_en vfro setting ????????????????????????????????????? about 7.5 msec 10-bit output period fgen_rq 10-bit output period intb pin output setting valid period setting valid period about 7.5 msec about 0.83 msec cr2-b6="1" cr2-b6="0" cr19 cr18 cr19 cr18
fedl7074-003-01 ML7074-003 70/93 fig. 35 fsk output control method a. internal data memory for fsk gain adjustment (fgen_gain) address: 00e4h initial value: 0080h the output level of the initial value will be ?13.3 dbm0. compute the setting value using the following equation when changing the output level. equation: 0080h ? gain example: for decreasing the output level by 6 db. 0080h ? 0.5 = 0040h upper limit: 40 db higher (data: 3200h) lower limit: 40 db lower (data: 0001h) notice: the maximum amplitude should not exceed 1.3vp-p. transmit data setting (cr18) transmit data setting (cr19) intb & fgen_rq="1" yes no start transmission (cr2-b6= "1") final data? yes no stop transmission (cr2-b6= "0") transmit data setting (cr18) transmit data setting (cr19) intb : falling edge of intb intb & fgen_rq="0" yes no intb : falling edge of intb
fedl7074-003-01 ML7074-003 71/93 tone_det0 detector the tone_det0 detector detects a 1650 hz single tone signal input from ain0 and ain1. this detector becomes effective when the control regi ster tdet0_en (cr3-b3) is ?1?. wh en the tone is detected, the control register tone0_det (cr3-b3) will be set to ?1?. tone0_ det will become ?0? when the tone is not detected or when tdet0_en is ?0?. the tone detect timing is shown in fig. 36. the tone detector is composed of a detector section, an on guard timer, and an off guard timer. the detect time and the detect level can be adjusted. the initial values of both on and off guard timers are 5 ms. the initial value of the detect level is ?5.3 dbm0. fig. 36 tone detect timing a. internal data memory for control of the detect level (tdet0_th) address: 0040h initial value: 1ebbh (?5.3 dbm0) compute the setting value using the following equation when changing the detect level x. equation: 10 ((x ? 3.17)/20) ? 2/ ? ? 32768 example: detect level of ?5.3 dbm0. 10 ((?5.3 ? 3.17)/20) ? 2/ ? ? 32768 = 7857d = 1ebbh upper limit :3.17 dbm0 (data: 517ch) : ?5.3 dbm0 (data: 1ebbh) lower limit : ?83.22 dbm0 (data: 0001h) b. internal data memory for the on guard timer (tdet0_on_tm) address: 0041h initial value: 0028h (5 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) tone signal on guard timer off guard timer tdet0_en ain input internal detect signal intb pin output tone0_det
fedl7074-003-01 ML7074-003 72/93 c. internal data memory for the off guard timer (tdet0_off_tm) address: 0042h initial value: 0028h (5 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) d. internal data memory for contro lling the detect frequency (tdet0_freq) address: ----h, initial value: ? the detect frequency can be changed. contact rohm's responsible sales person when you wish to change the detect frequency.
fedl7074-003-01 ML7074-003 73/93 tone_det1 detector the tone_det1 detector detects a 2100 hz single tone signal input from ain. this detector becomes effective when the control register tdet1_en (cr2-b4) is ?1?. when the tone is detected, the control register tone1_det (cr3-b4) will be set to ?1 ?. tone1_det will become ?0? when the tone is not detected or when tdet1_en is ?0?. the tone detect timing is shown in fig. 37. the tone detector is composed of a detector section, an on guard timer, and an off guard timer. the detect time and the detect level can be adjusted. the initial values of both on and off guard timers are 5 ms. the initial value of the detect level is ?5.3 dbm0. fig. 37 tone detect timing a. internal data memory for control of the detect level (tdet1_th) address: 0052h, initial value: 1ebbh (?5.3 dbm0) compute the setting value using the following equation when changing the detect level x. equation: 10 ((x ? 3.17)/20) ? 2/ ? ? 32768 example: detect level of -5.3 dbm0. 10 ((?5.3 ? 3.17)/20) ? 2/ ? ? 32768 = 7857d = 1ebbh upper limit : 3.17 dbm0 (data: 517ch) : ?5.3 dbm0 (data: 1ebbh) lower limit : ?83.22 dbm0 (data: 0001h) b. internal data memory for the on guard timer (tdet1_on_tm) address: 0053h, initial value: 0028h (5 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) tone signal on guard timer off guard timer tdet1_en ain input internal detect signal intb pin output tone1_det
fedl7074-003-01 ML7074-003 74/93 c. internal data memory for the off guard timer (tdet1_off_tm) address: 0054h, initial value: 0028h (5 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) d. internal data memory for controlling the detect frequency address: ----h, initial value: ? the detect frequency can be changed. contact rohm's responsible sales person when you wish to change the detect frequency.
fedl7074-003-01 ML7074-003 75/93 dtmf detector this section detects the dtmf signal input from ain. the dtmf detector becomes effective when the control register dtmf_en (cr2-b2) is ?1?, and when a valid dtmf signal is detected, dtmf_det (cr4-b4) becomes ?1? and the received code is stored in dtmf_0 to dtmf_3 (cr4-b3, 2, 1, 0). when no dtmf signal is detected or when dtmf_en is ?0?, dtmf_det will be ?0? and also dtmf_0 to dtmf_3 will be ?0000?. the dtmf detect timing is shown in fig. 38. the dtmf detector is composed of a detector section, an on guard timer, and an off guard timer. the detect time and the detect level can be adjusted. the initial values of both on and off guard timers are 20 ms. the initial value of the detect level is ?37.0 dbm0. fig. 38 dtmf detect timing a. internal data memory for gain adjustment (dtmf_th) address: 005ah, initial value: 1000h (?37.0 dbm0) compute the setting value using the following equation when changing the detect level. equation: 1000h ? 1 / gain example: increasing the detect level by 6 db. 1000h ? 0.5 = 0800h upper limit : 12 db higher (data: 0400h) lower limit : 12 db lower (data: 4000h) b. internal data memory for the on guard timer (dtmf_on_tm) address: 00bfh, initial value: 00a0h (20 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) dtmf signal "0000" detected code "0000" on guard timer off guard timer dtmf_en ain input internal dtmf detection dtmf_det dtmf code output (dtmf_code[3:0]) intb pin output
fedl7074-003-01 ML7074-003 76/93 c. internal data memory for the off guard timer (dtmf_off_tm) address: 00c1h, initial value: 00a0h (20 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) notice: during dtmf signal detection, if the dtmf signal ch anges to another code successively, the received code changes and an interrupt can be generated with dtmf_det in the ?1? state.
fedl7074-003-01 ML7074-003 77/93 echo canceller the block diagram of the echo canceller is shown in fig. 39. the echo canceller has a delay time of 32 ms and is ac tivated by setting a ?1? in ec_en (cr2-b1). the operation setting of the echo canceller is done mainly using the internal data memory locations ec_cr and glpad_cr. fig. 39 echo canceller block diagram a. echo canceller control (ec_cr) address: 0171h, initial value: 0012h write ?0? in the higher order 8 bits (b15 to b8) b7 b6 b5 b4 b3 b2 b1 b0 thr ? hld hdb clp ? attb ? initial value 0 0 0 1 0 0 1 0 b7: through mode control 1: through mode 0: normal mode (echo cancel operation) when this through mode control bit of the echo canceller is set, the data of rin and sin are output directly to rout and sout while retaining their respect ive echo coefficients. further, duri ng the through mode, the hld, hdb, attb and clp functions are disabled. b6: reserved bit. prohibited to change the initial value. b5: coefficient update control 1: coefficient fixed 0: coefficient updated this bit selects the presence or absence of updating of the adaptive fir filter (aff) coefficient of the echo canceller. this function becomes valid when thr is in the normal mode. echo canceller + - adaptive fir filter(aff) lpad gpad atts attr center clip sin rout sout rin power calc howling detector double talk det
fedl7074-003-01 ML7074-003 78/93 b4: howling detector control 1: off 0: on this bit controls the function of detecting and removing howling which is generated in a hands-free acoustic system, etc. this function becomes valid when thr is in the normal mode. b3: center clip control 1: on 0: off this bit controls the center clip function in which the sout output is forcibly fixed to the minimum positive value when the sout output of the echo canceller is ?57 dbm0 or less. this function becomes valid when thr is in the normal mode. b2: reserved bit. prohibited to change the initial value. b1: attenuator control 1: att off 0: att on this bit selects the switching on/off of the att functio n which prevents howling using the attenuators atts and attr provided at the rin input and sout output of the echo canceller. when only the rin input is present, the attenuator (atts) of sout will be inserted. when only the sin input is present or when both the sin and rin inputs are present, the attenuator (attr) of rin will be inserted. the respective attenuation values are 6 db. this function becomes valid when thr is in the normal mode. b0: reserved bit. prohibited to change the initial value. b. glpad control (glpad_cr) address: 0172h, initial value: 000fh this data memory controls the glpad within the echo ca nceller. write ?0? in the higher order 8 bits (b15 to b8). b7 b6 b5 b4 b3 b2 b1 b0 ? ? ? ? gpad2 gpad1 lpad2 lpad1 initial value 0 0 0 0 1 1 1 1 b7, 6, 5, 4: reserved bits. prohibited to change the initial values. b3, 2: output level control these bits control the gpad level for the echo canceller output gain. (0, 1): +18 db (0, 0): +12 db (1, 1): +6 db (1, 0): 0 db b1, 0: input level control these bits control the lpad level for the echo canceller input loss. (0, 1): ?18 db (0, 0): ?12 db (1, 1): ?6 db (1, 0): 0 db
fedl7074-003-01 ML7074-003 79/93 c. precautions in using the echo canceller c-1 in the echo path, make sure that the echo signal does not cause saturation, waveform distortion, etc., in the external amplifier, etc. the echo attenuation becomes poor if any saturation or waveform distortion occur. c-2 make the settings so that the echo return loss (e.r.l.) is attenuating. further, it is recommended to use the glpad function if the e.r.l. is set to be amplified. the echo attenuation gets deteriorated seriously if the e.r.l. is set to be amplified. the e.r.l. is the attenuation (loss) of echo amount from the echo canceller output (rout) to the echo canceller input (sin). c-3 when the echo path can change (such as during a reconn ected call), it is recommended to carry out a reset using ec_en (cr2-b1), pdnb, or spdn (cr0-b7).
fedl7074-003-01 ML7074-003 80/93 dial pulse detector (dpdet) dial pulse signals input at the general-purpose input pin gpi0 are detected by this dpdet. the dial pulse detector becomes effective when the control register bit dpdet_ en (cr10-b6) is ?1?. dp_det (cr4-b6) becomes ?1? when a dial pulse signal is detected and the detected number of dial pulses is stored in dpdet_code. the number of dial pulses detected should be read out from dpdet_code at the time when dp_det goes from ?1? to ?0?. when a dial pulse signal is not detected, or wh en dpdet_en is ?0?, dp_det will remain ?0?. the dial pulse detect timing is shown in fig. 40. the dial pulse detector samples the dial pulse signal input at gpi0 at 8 khz sampling rate, and detects the dial pulses base d on the settings of the on guard timer (d pdet_on_tim) and off guard timer (dpdet_off_tim). further, it is possible to adjust the detect end time by setting the detect end timer (dpdet_detoff_tim). fig. 40 dial pulse detect timing a. dial pulse detect contro l register (dpdet_en cr10-b6) 0: dial pulse detection stopped 1: dial pulse detection active b. dial pulse detector detect status register (dp_det cr4-b6) 0: dial pulses not detected 1: dial pulses detected this bit is set to ?1? after dpdet_en has been set when an edge at gpi0 is detected. further, if no edge is detected for a period set in dpdet_d etoff_tim after an edge detection, this bit will be cleared automatically to ?0?. gpi0 status of internal detection dpdet_off_tim dpdet_on_tim status of internal detection by guard timer dp detect timing dpdet_en gpi0 (internal signal after masked by guard timer) dp_det dpdet_detoff_tim dpdet_detoff_tim dpdet_code 123 010 intb
fedl7074-003-01 ML7074-003 81/93 c. internal data memory for on guard timer (dpdet_on_tim) address: 011bh, initial value: 0028h (5 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) d. internal data memory for off guard timer (dpdet_off_tim) address: 011ch, initial value: 0028h (5 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 5 ms 5/0.125 = 40d = 0028h upper limit : 4095.875 ms (data: 7fffh) : 5 ms (data: 0028h) lower limit : 0.125 ms (data: 0001h) e. internal data memory for polarity control (dpdet_pol) address: 122eh, initial value: 0000h (no polarity reversal) controls the polarity of the input from gpi0. 0000h: no polarity reversal 0001h: polarity reversal present f. internal data memory for detect end control (dpdet_detoff_tim) address: 122fh, initial value: 03e8h (125 ms) use the following equation when changing the timer value. equation: guard timer value in ms/0.125 ms example: 125 ms 125/0.125 = 1000d = 03e8h upper limit : 4095.875 ms (data: 7fffh) : 125 ms (data: 03e8h) lower limit : 0.125 ms (data: 0001h) g. internal data memory for indicating number of detected pulses (dpdet_code) address: 1231h, initial value: 0000h (not-detected state) indicates the number of detected pulses. this internal data memory for indication is updated when an edge is detected. notice: ignore the interrupt occurred after the time set by th e on guard timer if the dpd et is activated under the following conditions: ? dpdet_pol = ?0?, gpi0 = ?1? ? dpdet_pol = ?1?, gpi0 = ?1? or ?0?
fedl7074-003-01 ML7074-003 82/93 dial pulse transmitter (dpgen) the dial pulse transmitter outputs a dial pulse signal at the general-purpose output pin gpo0. the dial pulse generation will be effective when the control memory bit dpge n_en is ?1?, and a dial pulse signal is output with the number of pulses set in dpgen_data. the dial pulse output timing is shown in fig. 41. the spee d (rate) of dial pulses can be selected to be 10pps or 20pps by setting dpgen_pps accordingly. further, it is possible to adjust the make ratio by setting the high duration of the output pulses using dpgen_duty. fig. 41 dial pulse output timing a. internal data memory for dial pulse transmit control (dpgen_en) address: 1220h, initial value: 0000h the dial pulses are transmitted when a ?0001h? is written in this data memory. this data memory will be cleared automatically after a period of time set in dpgen_off_tim. 0000h: dial pulse output stopped 0001h: dial pulse output active notice: start dpgen only when cr17-b0 (gpo0) is in the ?0? state. b. internal data memory for setting the number of pulses (dpgen_data) address: 1221h, initial value: 0000h upper limit: 10 (data: 000ah) lower limit: 1 (data: 0001h) ?? 10pps: when the number of output pulses is 10: gpo0 dpgen_off_tim dpgen_en ?? 10pps: when the number of output pulses is 2: dpgen_off_tim 0.1sec/10pps (0.05sec/20pps) gpo0 dpgen_en the "high" output duration can be set (dpgen_duty). ?? "high" output duration setting
fedl7074-003-01 ML7074-003 83/93 c. internal data memory for dial pulse rate control (dpgen_pps) address: 1222h, initial value: 0000h 0000h: 10 pps 0001h: 20 pps d. internal data memory for setting ?high? output duration (dpgen_duty) address: 1223h, initial value: 0108h (33 ms/10 pps, 16.5 ms/20 pps) use the following equation when setting the ?high? duration. the value will be half this set value in the case of 20 pps. equation: ?high? output time duration in ms/0.125 ms example: 33 ms 33/0.125 = 264d = 0108h upper limit : 100 ms (data: 0320h) : 33 ms (data: 0108h) lower limit : 0.125 ms (data: 0001h) e. internal data memory for end of output control (dpgen_off_tim) address: 1225h, initial value: 03e8h (125 ms) use the following equation when setting the end of output control. equation: end of output time duration in ms/0.125 ms example: 125 ms 125/0.125 = 1000d = 03e8h upper limit : 4095.875 ms (data: 7fffh) : 125 ms (data: 03e8h) lower limit : 0 ms (data: 0000h)
fedl7074-003-01 ML7074-003 84/93 timer (timer) this is a 16-bit up-counter timer. when a ?0001h? is se t in the internal memory for timer control (tim_en), the timer starts counting up the time r count (tim_count ) at every 125 ? sec. when the timer count value becomes equal to the timer data value, the ti mer counter value will be reset to ?00 00h? and the timer starts counting up again. a. internal data memory for timer control (tim_en) address: 1218h, initial value: 0000h the timer starts counting up when ?0001h? is written in this data memory location. when a ?0000h? is set here, the counting up will be stopped and the counter value will be cleared. 0000h: stops counting 0001h: starts counting b. internal data memory for timer count indication (tim_count) address: 1219h, initial value: 0000h c. internal data memory for timer data (tim_data) address: 121ah, initial value: ffffh upper limit : 8192 ms (data: ffffh) lower limit : 0.250 ms (data: 0001h)
fedl7074-003-01 ML7074-003 85/93 outband control (outband_control) this is a function is automatically to mute or to write s ilence data in tx buffer when corresponding detection bit (***_det) gets ?1?. either to mute or to write silence data in tx buffer differs among speech codec?s as shown below; g.711 ( ? -/a-law) mutes speech data given to codec g.726 mutes speech data given to codec g.729.a writes silence data (80 bits) in tx buffer the 80 bits meaning silence in g.729.a to write in tx buffer as default could be altered any 80 bits you like in the initial mode. address : 1307h, initial value : 0000h b7 b6 b5 b4 b3 b2 b1 b0 - - - - - tdet1 _ob_en tdet0 _ob_en dtmfdet _ob_en initial value 0 0 0 0 0 0 0 0 b7, 6, 5, 4, 3 : reserved bits b2 : tdet1_outband_en control 1 : on (mutes speech data given to codec when tdet1_det is ?1?) 0 : off b1 : tdet0_outband_en control 1 : on (mutes speech data given to codec when tdet0_det is ?1?) 0 : off b0 : dtmfdet_outband_en control 1 : on (writes data specified by outband_ g729_dat which is silence as default when dtmf_det is ?1?) 0 : off - leak time of tones to tx buffer a referential equation for leak time of tones to tx buffer with each speech codec is shown below; g.711/g.726 0ms + a + b g.729.a -10ms to -20ms + a + b * -10ms to -20ms by prediction and framing process a : detection delay time of a given detector (ms) depends upon input level, frequency, etc.. b : on-guard timer time of a given detector < example> g.711 / g.726 30ms (a) + 20m s (b) = approx. 50ms g.729 (-10ms to -20ms) + 20ms (a) + 20ms (b) = approx. 30ms to 40ms outband g.729.a data (outband_g729_dat) when outband control is made in g.729.a mode, the data in the addresses below are written into tx buffer when corresponding detection bit (***_det) gets ?1?. the data to write into tx buffer could be altered in the initial mode. address : 016ch 016dh 016eh 016fh 0170h initial value : 7852h 80a0h 00fah c200h 07d6h
fedl7074-003-01 ML7074-003 86/93 lsi code indication (ml7074_version) the code ML7074-003 is indicated here. address: 0152h, initial value: 0002h
fedl7074-003-01 ML7074-003 87/93 example of configuration analog i/f mode echo canceller dtmf_rec + - aff d/a lpf g.729.a g.726 tone_gen (tonea/b) tx buffer0 rx buffer0 frame/dma controller intb a0-a7 control register 8b d0-d15 16b vref csb rdb wrb fr0b fr1b ack0b ack1b ain1n gsx1 vfro0 avref osc power pll speech codec 10k ? 10k ? dvdd2 dgnd2 avdd agnd pdnb tst1 xi xo g.711 txgain rxgain dvdd1 dgnd1 dvdd0 dgnd0 tst2 tst3 ckgn mck sync(8khz) lpad gpad atts attr bus control unit center clip encoder g.729.a g.726 g.711 decoder dtmf_det int dtmf_det tx buffer1 rx buffer1 ain0n gsx0 10k ? ain0p linear pcm codec vfro1 10k ? stgain sync bclk pcmi pcmo tone_det1 tone1_det s/p p/s serial i/f tone0_det tone1_det gpi0 gpi1 gpo0 gpo1 tone_det0 tone0_det fsk_gen tst0 clksel amp0 amp1 amp2 amp3 sin rout sout rin a/d bpf g.729.a g.729.a g.711 g.711 g.726 g.726 codec encoder decoder dpgen dpdet cr16-b0(gpi0) cr17-b0(gpo0) dp_det dp_det timer dtmf_code[3:0] dtmf_code[3:0] function stopped cannot be used example of settings in the initialization mode ? cr15 = 40h * this is mandatory. ? cr6=01h,cr7=16h,cr8=00h,cr9=01h,cr1=80h (address : 0116h, data : 0001h) * this is mandatory. as for how to set them, refer to method of accessing and controlling internal data memory. ? cr11 = 00h (frame/10 ms/16b/speech codec = g.729.a) ? various settings ? cr0 = 09h (ope_stat = ?1?)
fedl7074-003-01 ML7074-003 88/93 pcm i/f mode echo canceller dtmf_rec + - aff d/a lpf g.729.a g.726 tone_gen (tonea/b) tx buffer0 rx buffer0 frame/dma controller intb a0-a7 control register 8b d0-d15 16b vre f csb rdb wrb fr0b fr1b ack0b ack1b ain1n gsx1 vfro0 avref osc power pll speech codec 10k ? 10k ? dvdd2 dgnd2 avdd agnd pdnb tst1 xi xo g.711 txgain rxgain dvdd1 dgnd1 dvdd0 dgnd0 tst2 tst3 ckgn mck sync(8khz) lpad gpad atts attr bus control unit center clip encoder g.729.a g.726 g.711 decoder dtmf_det int dtmf_det tx buffer1 rx buffer1 ain0n gsx0 10k ? ain0p linear pcm codec vfro1 10k ? stgain sync bclk pcmi pcmo tone_det1 tone1_det s/p p/s serial i/f tone0_det tone1_det gpi0 gpi1 gpo0 gpo1 tone_det0 tone0_det fsk_gen tst0 clksel amp0 amp1 amp2 amp3 sin rout sout rin a/d bpf g.729.a g.729.a g.711 g.711 g.726 g.726 codec encoder decoder dpgen dpdet cr16-b0(gpi0) cr17-b0(gpo0) dp_det dp_det timer dtmf_code[3:0] dtmf_code[3:0] function stopped cannot be used examples of settings in the initialization mode ? cr15 = 40h * this is mandatory. ? cr6=01h,cr7=16h,cr8=00h,cr9=01h,cr1=80h (address : 0116h, data : 0001h) * this is mandatory. as for how to set them, refer to method of accessing and controlling internal data memory. ? ? cr10 = 00h (vfro1 = avref/vfro0 = avref) ? cr11 = 00h (frame/10 ms/16b/pcmif = 16-bit linear) ? cr12 = 01h (speech codec = g.729.a/pcmif_en = ?1?) ? various settings ? cr0 = 29h (afe_en = power down/long/ope_stat = ?1?)
fedl7074-003-01 ML7074-003 89/93 g.729.a ? g.726 mutual conversion echo canceller dtmf_rec + - aff d/a lpf g.729.a g.726 tone_gen (tonea/b) tx buffer0 rx buffer0 frame/dma controller intb a0-a7 control register 8b d0-d15 16b vref csb rdb wrb fr0b fr1b ack0b ack1b ain1n gsx1 vfro0 avref osc power pll speech codec 10k ? 10k ? dvdd2 dgnd2 avdd agnd pdnb tst1 xi xo g.711 txgain rxgain dvdd1 dgnd1 dvdd0 dgnd0 tst2 tst3 ckgn mck sync(8khz) lpad gpad atts attr bus control unit center clip encoder g.729.a g.726 g.711 decoder dtmf_det int dtmf_det tx buffer1 rx buffer1 ain0n gsx0 10k ? ain0p linear pcm codec vfro1 10k ? stgain sync bclk pcmi pcmo tone_det1 tone1_det s/p p/s serial i/f tone0_det tone1_det gpi0 gpi1 gpo0 gpo1 tone_det0 tone0_det fsk_gen tst0 clksel amp0 amp1 amp2 amp3 sin rout sout rin a/d bpf g.729.a g.729.a g.711 g.711 g.726 g.726 codec encoder decoder dpgen dpdet cr16-b0(gpi0) cr17-b0(gpo0) dp_det dp_det timer dtmf_code[3:0] dtmf_code[3:0] function stopped cannot be used examples of settings in the initialization mode ? cr15 = 40h * this is mandatory. ? cr6=01h,cr7=16h,cr8=00h,cr9=01h,cr1=80h (address : 0116h, data : 0001h) * this is mandatory. as for how to set them, refer to method of accessing and controlling internal data memory. ? cr11 = 05h (frame/10 ms/16b/g.726/trans_en= ?1?) ? cr10 = 00h (vfro1 = avref/vfro0 = avref) ? various settings ? cr0 = 29h (afe_en = power down/long/ope_stat = ?1?)
fedl7074-003-01 ML7074-003 90/93 example of application circuit 49 avref vfro0 vfro1 avdd 50 51 52 53 54 55 56 57 58 59 60 61 62 63 32 31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 tst3 tst2 dgnd2 xi xo dvdd2 ain1n gsx1 ain0p ain0n gsx0 agnd ML7074-003 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 dgnd0 tst1 tst0 pcmo pcmi bclk sync rdb wrb csb fr0b fr1b dvdd0 intb ack0b ack1b 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 dgnd1 dvdd1 a0 a1 a2 a3 a4 a5 a6 a7 gpi0 gpi1 gpo0 gpo1 pdnb clksel d15 d14 d13 d12 d11 d10 d9 d8 d7 d6 d5 d4 d3 d2 d1 d0 64 +3.3v +3.3v +3.3v open open open power down control mcu i/f general- purpose input pins 4.096 mhz crystal oscillator analog input pcm i/f analog output conditions: - w hen using analog interface - frame mode - sync and bclk are output (clksel="1") general- purpose output pins 16 1.4v
fedl7074-003-01 ML7074-003 91/93 package dimensions qfp64-p-1414-0.80-bk mirror finish package material epoxy resin lead frame material 42 alloy pin treatment solder plating (  5 m) package weight (g) 0.87 typ. 5 rev. no./last revised 6/feb. 23, 2001 notes for mounting the su rface mount type package the surface mount type packages are very susceptible to heat in reflow mounting and humi dity absorbed in storage. therefore, before you perform reflow mounting, contact rohm's responsible sales person for the product name, package name, pin number, package code and desired mounting conditions (reflow method, temperature and times). (unit: mm)
fedl7074-003-01 ML7074-003 92/93 revision history page document no. date previous edition current edition description fedl7074-003-01 mar. 2, 2003 ? ? final edition 1
fedl7074-003-01 ML7074-003 93/93 notice no copying or reproduction of this document, in part or in whole, is permitted without the consent of lapis semiconductor co., ltd. the content specified herein is subject to change for improvement without notice. the content specified herein is for the purpose of introducing lapis semiconductor's products (hereinafter "products"). if you wish to use any such product, pleas e be sure to refer to the specifications, which can be obtained from lapis semiconductor upon request. examples of application circuits, circuit constants an d any other information contained herein illustrate the standard usage and operations of the products. the peri pheral conditions must be taken into account when designing circuits for mass production. great care was taken in ensuring the accuracy of the info rmation specified in this document. however, should you incur any damage arising from any inaccuracy or misprint of such information, lapis semiconductor shall bear no responsibility for such damage. the technical information specified herein is intended on ly to show the typical functions of and examples of application circuits for the products. lapis semiconductor does not grant you, explicitly or implicitly, any license to use or exercise intellectual property or othe r rights held by lapis semiconductor and other parties. lapis semiconductor shall bear no responsibility whatso ever for any dispute arising from the use of such technical information. the products specified in this docu ment are intended to be used with general-use electronic equipment or devices (such as audio visual equipment, office-automation equipment, communication devices, electronic appliances and amusement devices). the products specified in this document are not designed to be radiation tolerant. while lapis semiconductor always makes efforts to enhance the quality and reliability of its products, a product may fail or malfunction for a variety of reasons. please be sure to implement in your equipment using the products safety measures to guard against the possibility of physical injury, fire or any other damage caused in the event of the failure of any product, such as derating, redundancy, fire control and fail-safe design s. lapis semiconductor shall bear no responsibility whatsoever for your use of any produc t outside of the prescribed scope or not in accordance w ith the instruction manual. the products are not designed or manufactured to be used with any equipment, device or system which requires an extremely high level of reliability the failure or malf unction of which may result in a direct threat to human life or create a risk of human injury (such as a medical instrument, transportation equipment, aerospace machinery, nuclear-reactor controller, fuel-controller or other safety devi ce). lapis semiconductor shall bear no responsibility in any way for use of any of the prod ucts for the above special purposes. if a product is intended to be used for any such special purpose, please contact a rohm sales representative before purchasing. if you intend to export or ship overseas any product or technology specified herein that may be controlled under the foreign exchange and the foreign trade law, you w ill be required to obtain a license or permit under the law. copyright 2011 lapis semiconductor co., ltd.


▲Up To Search▲   

 
Price & Availability of ML7074-003

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X